Allrightythen, Been off crook for a couple of days so have just started back on this today. Glad (extremely pleased actually) that it is now working. Here is what I had to do:
Firstly the URL and the SoapAction settings were OK. It was the xml data that I was sending that was broken. I had originally copied the xml from the ssl version and re-created it in the non-ssl version and while I found a couple of typos the real problems (with the assistance of a web person and the fiddler program) were found to be: a) the name space in the xml envelope had to be changed to: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> b) remove entirely the soap header of: <s:Header> <a:Action s:mustUnderstand="1">http://tempuri.org/IJobService/CreateJob1UserPartyRole</a:Action> . . . etc etc . . . </s:Header> c) also force the http version to be 1.1 as 1.0 resulted in a 404 not found rather than a 400 bad request. Briefly then the commands (in order) used to get non-SSL version working were: URL = "http://our-dev.domain.com/apps/jobs/Services/Job.svc" SoapAction = "http://tempuri.org/IJobService/CreateJob1UserPartyRole" Timeout = 30000 Ret = setHTTPDefault( "VERSION" , "1.1" ) Ret = SOAPCreateRequest( URL , SoapAction , RequestHandle ) Ret = SOAPSetRequestContent( RequestHandle , XMLOut , 1 ) Ret = SOAPSubmitRequest( RequestHandle, Timeout, RespHeaders, RespData, RespStatus ) and for the sake of comparison the commands (in order) to get the SSL version working were: URL = https://our-dev.comain.com/apps/jobs/Services/Job.svc HttpMethod = "POST:application/soap+xml" Timeout = 30000 Ret = setHTTPDefault( "VERSION" , "1.1" ) Ret = createSecurityContext( ContextHandle, '' ) Ret = addCertificate( CertificatePath , CertificateUsedAs , CertificateFormat , CertificateAlgorithm , ContextHandle ) Ret = addAuthenticationRule( ContextHandle , 2 , "VerificationStrength" , "generous" ) Ret = setAuthenticationDepth( ContextHandle , AuthenticationDepth , AuthenticateAs ) Ret = createSecureRequest( URL , HttpMethod , RequestHandle , ContextHandle ) Ret = submitRequest( RequestHandle, '' , XMLOut , ResponseHeaders , ResponseData , HttpStatus ) Thanks everyone for your help. Cheers Peter -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Hona, David Sent: Wednesday, 17 April 2013 12:18 To: U2 Users List Subject: Re: [U2] UV Creating a Soap Request Oops, yes - sorry for my misleading reply regarding the URIs. Tempui.org is a valid placeholder and you don't need to replace it. Have you tried now SOAPAction and what error do you get then? -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Cheney Sent: Wednesday, 17 April 2013 9:24 AM To: U2 Users List Subject: Re: [U2] UV Creating a Soap Request Thanks again David and Symeon for your replies I thought the SOAPAction was correct but now am not sure. If I browse to the WSDL schema I see the following spec though. Would this mean the 'tempuri.org' should be replaced with 'our-dev.domain.com' in the WSDL too? <wsdl:operation name="CreateJob1UserPartyRole"> <soap:operation soapAction="http://tempuri.org/IJobService/CreateJob1UserPartyRole" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> I went and checked out the www.webservicex.net site (from the e.g. below) and looking in there and comparing to what I had and they seem to be pretty much a match except for the domain part of the SOAPAction. So perhaps I need to look elsewhere? There seems to me to be only 3 variables at play here: The URL, the SOAPAction, and the XML request. Given that I've just finished fiddling with the URL and SOAPAction with no apparent change in the log output I'll turn my attention to the XML ... One other question is it possible to query the WSDL from UV? Cheers Peter ************** IMPORTANT MESSAGE ***************************** This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. We can be contacted through our web site: commbank.com.au. If you no longer wish to receive commercial electronic messages from us, please reply to this e-mail by typing Unsubscribe in the subject line. ************************************************************** _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users ------------------------------------------------------------------------------- Note: This email (inc all attachments) is for the use of the intended recipient(s) only. Privileged or confidential information may be contained in this communication. If you have received this email in error, please notify the sender immediately and then delete all copies of this message from your computer network. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email without the author's prior permission. If you are the intended recipient and you do not wish to receive similar electronic messages from us in future, then please respond to the sender to this effect. We have taken precautions to minimise the risk of transmitting software viruses, but advise you to carry out your own virus checks on this email and its attachments. We do not accept liability for any loss or damage caused by software viruses and do not represent that this transmission is free from viruses or other defects. Firstmac Limited (ABN 59 094 145 963) (AFSL 290600) ------------------------------------------------------------------------------- _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
