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

Reply via email to