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


-----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 

Using this example as a starting point: 

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 

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  : 
 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.


This email (inc all attachments) is for the use of the intended recipient(s) 
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

************** IMPORTANT MESSAGE *****************************       
This e-mail message is intended only for the addressee(s) and contains 
information which may be
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

Reply via email to