Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSDL problem #692

Closed
federicolucca opened this issue May 25, 2015 · 6 comments
Closed

WSDL problem #692

federicolucca opened this issue May 25, 2015 · 6 comments

Comments

@federicolucca
Copy link

Goodmorning

I must connect a ruby app to an external SOAP service. The supplier gave me a WSDL document for configure the calls. I have some problem with savon like this one below

undefined method `bytesize' for :get_depots:Symbol

I think the problem is that the WSDL has need an another external WSDL for types,but the types are define otherwise in the same WSDL.

Can i send you WSDL and my code for check?

Federico

@tjarratt
Copy link
Contributor

Hey @federicolucca thanks for reaching out. The problem you described (e.g. invoking #bytesize on the :get_depots symbol), sounds like the real problem. Could you provide the full error, with the full backtrace so we can see where that occurred?

The solution you discussed -- namely, the WSDL importing another remote WSDL for types, is a pretty common one. There's an open issue on Wasabi (another gem used by Savon) for this, but it hasn't had much progress lately. If that is your problem, you might try amending your WSDL to include the types defined by the external WSDL.

@federicolucca
Copy link
Author

thanks for the reply.
I did send WSDL by mail, i checked the Wasabi issue and could be the same.

Federico

@federicolucca
Copy link
Author

i went ahead and finally i had this,from @client.operations .
[:get_depots, :get_pickup_cutoff_times, :validate_address, :calculate_estimated_time, :get_locations, :get_nearest_depot, :search_consignments, :get_consignment_details, :get_service_codes, :create_pickup_booking, :calculate_cost, :get_qc_codes, :calculate_cost_and_estimated_time]

now i try @client.call(:calculate_cost) ,where is the error?
screen shot 2015-05-26 at 12 34 08 pm

@tjarratt
Copy link
Contributor

builder.rb is actually in Savon -- I noticed that too earlier, when I was looking at the information you at sent me.

That's the result of setting :namespaces to a single string, I believe that expects a hash where the keys are the namespace and the values are URLs.

@stale
Copy link

stale bot commented Feb 19, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 19, 2018
@stale
Copy link

stale bot commented Feb 26, 2018

This issue is now closed due to inactivity. If you believe this needs further action, please re-open to discuss.

@stale stale bot closed this as completed Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants