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 -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Hona, David Sent: Tuesday, 16 April 2013 17:57 To: U2 Users List Subject: Re: [U2] UV Creating a Soap Request Hi Peter Is your SOAPAction correct?? The tempURI.org is a Microsoft standard placeholder - usually replaced by a proper URI or hostname name, etc. SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole Cheers, David -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney Sent: Tuesday, 16 April 2013 4:14 PM To: U2 Users List (u2-users@listserver.u2ug.org) Subject: [U2] UV Creating a Soap Request Hi Everyone, Recently I had some success getting a secure version of this to work etc. but now "they" want to change it to non-SSL so am trying to get plain old http to work. Using this example as a starting point: https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api I've managed to (I think) translate the example above with our URL and soap action etc. but I have a question regarding the UV SOAPCreateRequest and hope someone may be able to assist. The URL I specify in SOAPCreateRequest is http://our-dev.domain.com/apps/jobs/Services/Job.svc However in the log file I get: 04/16/2013 15:05:16 [ 446706 925928 ] Assembled Request: POST /apps/jobs/Services/Job.svc HTTP/1.1 Date: Tue, 16 Apr 2013 05:05:16 GMT Host: our-dev.domain.com SOAPAction: http://tempuri.org/IJobService/CreateJob1UserPartyRole User-Agent: IBM UniVerse 11.x Content-Type: text/xml; charset=utf-8 Content-Length: 1670 The POST seems to be missing the first part of the URL and with the response being a "400 bad request" I'm wondering if there's anything I can do to force the complete URL? In particular is there a SOAP command that I'm missing? Briefly I do the following in this order: Ret = setHTTPDefault( "VERSION" , "1.1" ) Ret = SOAPSetDefault( "VERSION" , "1.2" ) Ret = SOAPCreateRequest( URL , SoapAction , SoapReq ) Ret = SOAPSetRequestContent( SoapReq , PAYLOAD , 1 ) Ret = SOAPSubmitRequest( SoapReq, Timeout, RespHeaders, RespData, SoapStatus ) The return codes from above are: setHTTPDefault result = 0 SOAPSetDefault result = 0 SOAPCreateRequest result = 0 SOAPSetRequestContent result = 0 SOAPSubmitRequest result = 0 The SoapStatus from SOAPSubmitRequest above is: Response status : 400▒Bad Request The RespHeaders returned from SOAPSubmitRequest above is: Response headers : Cache-Control▒private▒Server▒Microsoft-IIS/7.5▒X-Powered-By▒4.0.30319▒X-Powered-By▒ASP.NET▒Date▒Tue, 16 Apr 2013 05:46:06 GMT▒Content-Length▒0 To me the soap action seems good and the xml in the payload looks ok too so it has to be something in the delivery. We're running UV 10.3.4 on AIX 5.3. Reckon I must be missing something above so looking at the basic ref manual but it does not indicate if any of the soap commands therein and the above have other dependencies/pre-requisites and in what order they should occur. I guess a prior soap knowledge is expected but I'm just starting to get into this so if anyone can assist that'd be really helpful thanks. Cheers Peter ------------------------------------------------------------------------------- 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 U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ************** 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 U2-Users@listserver.u2ug.org 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 U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users