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
New_DeveloperNew_Developer 

Help with POST request

Hi,

Iam trying to use http POST request to enter data from salesforce to external system.  My WSDl file contans below soapAction

-<wsdl:operation name="AddCustomerData">
<soap12:operation style="document" soapAction="http://xxxx.org/WebServices/AddCustomerData"/>

Salesforce doesnot support SOAP 1.2 , so does that mean i cannot use the webservices for POSt operation too? The WSDL file i got only has SOAP12 operations. How can make it work so that i can use webservices to POST and GET data.

Thanks
andy21aaandy21aa
Hi,

You will have to get your hands dirty and edit the WSDL file to remove the WSDL 1.2 references.
I use Altova XML Spy because it displays all the 1.1 and 1.2 references graphically, so you can easily delete all the 1.2 stuff.

Hth
New_DeveloperNew_Developer
Thanks for the reply. But it doesn't have 1.1 reference at all in the WSDl file. it just has Soap12 operations
andy21aaandy21aa

Hmmm, you might be able to covert the file to WSDL 1.1 using a converter, such as http://webservices20.cloudapp.net/wsdl2wsdl.html.

Other than this, you would need to manually rewrite it. Sorry I can't be of more help.

New_DeveloperNew_Developer
Thanks andy. Sorry i have never done this. How do i manually rewrite it? Just replace soap12 with soap?? 
andy21aaandy21aa

Neihter have I! Lol.
Did the online converter I gave a link to not help?

Altova XML Spy would help you, there is a 30 day trial you can use:
http://www.altova.com/simpledownload2c.html?gclid=CO2C2qaQ0b0CFQvHtAodrUgAcg






 

New_DeveloperNew_Developer
The online converter link did not work. So there is wsaw:action and also Soap12 operation in my WSDL file. So if i do a POST request , will the request look for wsaw action if it did not find the soap action?? NOt really sure what is wsaw:action meant
andy21aaandy21aa
In order to convert you must have a working knowledge of WSDL markup, and how it works.
There are hundreds of tutorials / examples on the web, you will need to invest some time in exploring these before you can hope to convert the file for salesforce to use.