function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sparky JaneSparky Jane 

How can we interact Rpc based wsdl from salesforce

Hi, I am experiencing an issue with my WSDL in that it is producing errors when I try to generate APEX classes from it. It was originally throwing errors about name attributes missing so I then followed a previous boards example that I found and replaced the following code:

<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:RemoteUser[]"/>

with

<attribute ref="soapenc:arrayType" name="salesforce" wsdl:arrayType="tns1:RemoteUser[]"/>

However it then started to throw more errors:

Error: Failed to parse wsdl: type not specified for attribute: salesforce

I'm not sure why this is occurring as the type is clearly defined, or is it not?


I have a fast approaching deadline for this project so would greatly appreciate any assitance or explanation that the forum can offer.

Thank you in advance,
RVL
ShashankShashank (Salesforce Developers) 
Salesforce does not support RPC-based WSDL input for the WSDL2APEX tool. It only supports Document/literal wrapped style WSDL. You may have to convert your WSDL accordingly. Please see this for help: http://msdn.microsoft.com/en-us/library/ms996466.aspx

Other way is to make APEX callouts for the integration.
Gaurav NirwalGaurav Nirwal
follow these steps...
goto setup--> appsetup-->deveop-->apex classes
click on "generate from wsdl" button and give the path of your wsdl file and click on "parse wsdl" button. then let meknow the error you are getting.
Sparky JaneSparky Jane
Hi Matthews,
                Thankyou for your respone.


This is the error that I'm getting

Thanks,
Sparky Jane