You need to sign in to do that
Don't have an account?
sarathy
Invoking external Webservice on a button click - Error parsing wsdl
I am a newbee to SF development trying to integrate our product with SF.
I want to invoke a web service on a button click. This is what I have done so far:
While one of the namespace gets a class generated, it is giving a compilation error in the other one. As the error message does not have any clear indication, can anyone shed some light on what the issue may be? Feel free to generate from wsdl yourself to check out the error message. Here is a link to the wsdl, I am using: http://www.ascnet.com/~sarathy/CMSSoapService.wsdl
- I have added a custom button to Accounts form
- I have set it up as a On-click javascript type and on-click I am invoking a wrapper class which will invoke the appropriate Apex Webservice class.
- I have a wsdl which defines the webservice operations
While one of the namespace gets a class generated, it is giving a compilation error in the other one. As the error message does not have any clear indication, can anyone shed some light on what the issue may be? Feel free to generate from wsdl yourself to check out the error message. Here is a link to the wsdl, I am using: http://www.ascnet.com/~sarathy/CMSSoapService.wsdl
Your operation names seem to be confusing the Apex code generator (I think some are reserved words).
Thanks for your reply/help. That makes sense. I actually had a compilation error when I used "retrieve" in other place.
Sarathy
I am able to invoke a particular operation (login for example) and I see the request is processed in the server. But when the response is sent, SF complains "Unable to parse callout response. Apex type not found for element http://asccontracts.com/wsdl/cms=success".
Also, to get it to work, I had trimmed down the wsdl quite a bit, as it was complaining about multiple parts in messages. I have the new wsdl at "www.ascnet.com/~sarathy/CMSSoapService.wsdl". This wsdl generates one class (cms) but fails generating one of the classes (cms/wsdl). Technically, we can have more than 1 part element for messages in document/literal style. Any idea what could be wrong here.