ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAPAction error for webservice(HTTPRequestNode)

Post new topic  Reply to topic
 SOAPAction error for webservice(HTTPRequestNode) « View previous topic :: View next topic » 
Author Message
matam_viswa
PostPosted: Wed Jun 27, 2007 2:57 am    Post subject: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi All,
I am facing problem with HttpRequest Node.The error i am getting from the webservice is:

SOAPAction: http://www.liberty.co.za/RequestTaxYears..Content-Length: 56....
<h1>Bad Request (Invalid Hostname)</h1>.


Any one can please let me what i need specify in Soap action?


My FLOW:

InputNode-->ComputeNode1--->ComputeNode2-->HTTPRequestNode-->computeNode--outputNode

Code:


DECLARE tns NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE ns NAMESPACE 'http://www.liberty.co.za/';
DECLARE soap NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap/';
DECLARE tm NAMESPACE 'http://microsoft.com/wsdl/mime/textMatching/';
DECLARE soapenc NAMESPACE 'http://schemas.xmlsoap.org/soap/encoding/';
DECLARE mime NAMESPACE 'http://schemas.xmlsoap.org/wsdl/mime/';
DECLARE s NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE soap12 NAMESPACE 'http://schemas.xmlsoap.org/wsdl/soap12/';
DECLARE http NAMESPACE 'http://schemas.xmlsoap.org/wsdl/http/';
DECLARE wsdl NAMESPACE 'http://schemas.xmlsoap.org/wsdl/';

ComputeNode1


SET Environment.MQMD = InputRoot.MQMD;
SET OutputRoot.Properties.MessageSet = 'J8971Q0002001';
      SET OutputRoot.Properties.MessageType = 'Envelope';
      SET OutputRoot.Properties.MessageFormat = 'XML1';

SET OutputRoot.XML.TXLifeRequest."TransRefGUID" =InputRoot.MQMD.MsgId;
      SET OutputRoot.XML.TXLifeRequest."TransType".(XML.attr)tc='310';
      SET OutputRoot.XML.TXLifeRequest."TransType" = 'Contribution Certificate';
      SET OutputRoot.XML.TXLifeRequest."TransExeDate" = '2007-04-01';   
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.(XML.attr)id='HOLD1';
      SET Environment.Variables.Contract_Number='10000634';
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.HoldingKey = '10000634';
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.OLifEExtension.(XML.attr)VendorCode='LIB';
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.OLifEExtension.(XML.attr)SystemCode='CATCH';     
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.OLifEExtension.DocumentType.tc ='1';
      SET OutputRoot.XML.TXLifeRequest.OLifE.Holding.OLifEExtension.DocumentType = 'Contribution Certificate';


ComputeNode2

SET OutputRoot.Properties.MessageSet = 'J8971Q0002001';
SET OutputRoot.Properties.MessageType = 'Envelope';
SET OutputRoot.Properties.MessageFormat = 'XML1';
     
SET Environment.Properties1 = InputRoot.Properties;
SET Environment.Variables.XMLMessage = InputRoot.XML
SET OutputRoot.MRM.tns:Body.ns:RequestTaxYears.node =  Environment.Variables.XMLMessage;
SET OutputRoot.HTTPRequestHeader.SOAPAction='http://www.liberty.co.za/RequestTaxYears';


HTTPRequestNode: properties

WebService URL*  :http://lolita/CatchService/Service.asmx



----------

WSDL File
----------
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://www.liberty.co.za/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://www.liberty.co.za/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.liberty.co.za/">
<s:element name="RequestOnline">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="node">
<s:complexType mixed="true">
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RequestOnlineResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="RequestOnlineResult" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="node">
<s:complexType mixed="true">
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRole">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="userName" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRoleResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetRoleResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RequestTaxYears">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="node" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RequestTaxYearsResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="RequestTaxYearsResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ProcessJob">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="JobType" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ProcessJobResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ProcessJobResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="SetMQSIStatus">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="str" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="SetMQSIStatusResponse">
<s:complexType />
</s:element>
<s:element name="RequestDuplicateCertificate">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="InputXML" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="RequestDuplicateCertificateResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="RequestDuplicateCertificateResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="RequestOnlineSoapIn">
<wsdl:part name="parameters" element="tns:RequestOnline" />
</wsdl:message>
<wsdl:message name="RequestOnlineSoapOut">
<wsdl:part name="parameters" element="tns:RequestOnlineResponse" />
</wsdl:message>
<wsdl:message name="GetRoleSoapIn">
<wsdl:part name="parameters" element="tns:GetRole" />
</wsdl:message>
<wsdl:message name="GetRoleSoapOut">
<wsdl:part name="parameters" element="tns:GetRoleResponse" />
</wsdl:message>
<wsdl:message name="RequestTaxYearsSoapIn">
<wsdl:part name="parameters" element="tns:RequestTaxYears" />
</wsdl:message>
<wsdl:message name="RequestTaxYearsSoapOut">
<wsdl:part name="parameters" element="tns:RequestTaxYearsResponse" />
</wsdl:message>
<wsdl:message name="ProcessJobSoapIn">
<wsdl:part name="parameters" element="tns:ProcessJob" />
</wsdl:message>
<wsdl:message name="ProcessJobSoapOut">
<wsdl:part name="parameters" element="tns:ProcessJobResponse" />
</wsdl:message>
<wsdl:message name="SetMQSIStatusSoapIn">
<wsdl:part name="parameters" element="tns:SetMQSIStatus" />
</wsdl:message>
<wsdl:message name="SetMQSIStatusSoapOut">
<wsdl:part name="parameters" element="tns:SetMQSIStatusResponse" />
</wsdl:message>
<wsdl:message name="RequestDuplicateCertificateSoapIn">
<wsdl:part name="parameters" element="tns:RequestDuplicateCertificate" />
</wsdl:message>
<wsdl:message name="RequestDuplicateCertificateSoapOut">
<wsdl:part name="parameters" element="tns:RequestDuplicateCertificateResponse" />
</wsdl:message>
<wsdl:portType name="WCatchSoap">
<wsdl:operation name="RequestOnline">
<wsdl:input message="tns:RequestOnlineSoapIn" />
<wsdl:output message="tns:RequestOnlineSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetRole">
<wsdl:input message="tns:GetRoleSoapIn" />
<wsdl:output message="tns:GetRoleSoapOut" />
</wsdl:operation>
<wsdl:operation name="RequestTaxYears">
<wsdl:input message="tns:RequestTaxYearsSoapIn" />
<wsdl:output message="tns:RequestTaxYearsSoapOut" />
</wsdl:operation>
<wsdl:operation name="ProcessJob">
<wsdl:input message="tns:ProcessJobSoapIn" />
<wsdl:output message="tns:ProcessJobSoapOut" />
</wsdl:operation>
<wsdl:operation name="SetMQSIStatus">
<wsdl:input message="tns:SetMQSIStatusSoapIn" />
<wsdl:output message="tns:SetMQSIStatusSoapOut" />
</wsdl:operation>
<wsdl:operation name="RequestDuplicateCertificate">
<wsdl:input message="tns:RequestDuplicateCertificateSoapIn" />
<wsdl:output message="tns:RequestDuplicateCertificateSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WCatchSoap" type="tns:WCatchSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="RequestOnline">
<soap:operation soapAction="http://www.liberty.co.za/RequestOnline" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="GetRole">
<soap:operation soapAction="http://www.liberty.co.za/GetRole" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="RequestTaxYears">
<soap:operation soapAction="http://www.liberty.co.za/RequestTaxYears" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ProcessJob">
<soap:operation soapAction="http://www.liberty.co.za/ProcessJob" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="SetMQSIStatus">
<soap:operation soapAction="http://www.liberty.co.za/SetMQSIStatus" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="RequestDuplicateCertificate">
<soap:operation soapAction="http://www.liberty.co.za/RequestDuplicateCertificate" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WCatch">
<wsdl:port name="WCatchSoap" binding="tns:WCatchSoap">
<soap:address location="http://Lolita/CatchService/service.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

---------------------

Regards
Viswa
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 3:22 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I usually look at the hostname when I get an error about an Invalid Hostname.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
matam_viswa
PostPosted: Wed Jun 27, 2007 3:52 am    Post subject: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi Grand Master,
The host name is correct. what i specified in URL.

I am getting the same error( Invalid Hostname) if i specify the IP address in URL.

Can you please let me know what i specified is correct in SOAPAction?

because i tried the below in computenode2.

Code:


     SET outputRoot.HTTPRequestHeader.SOAPAction='http://lolita/CatchService/Service.asmx/RequestTaxYears';



i am getting the error

SOAPAction: http://lolita/CatchService/Service.asmx/RequestTaxYears..Content-Length: 71....
<h1>Bad Request (Invalid Hostname)</h1>


Regards
Viswa
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Jun 27, 2007 3:57 am    Post subject: Re: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Hi,

Can you check

Code:
ping lolita


and

Code:
telnet lolita 80

from broker machine.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Wed Jun 27, 2007 4:10 am    Post subject: Re: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Another thing:

Show your entire request and entire ws reply.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
PieterV
PostPosted: Wed Jun 27, 2007 4:47 am    Post subject: Reply with quote

Disciple

Joined: 04 Jan 2006
Posts: 164
Location: Belgium

I think you need to set
OutputRoot.HttpRequestHeader.Host = '???'; -- 'lolita'
Back to top
View user's profile Send private message
matam_viswa
PostPosted: Wed Jun 27, 2007 5:02 am    Post subject: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

when ping the lolita server i am getting the below response.


C:\Documents and Settings\VZM1203>ping lolita

Pinging lolita.liberty.fin-za.net [163.202.252.86] with 32 bytes o

Reply from 163.202.252.86: bytes=32 time<10ms TTL=127
Reply from 163.202.252.86: bytes=32 time<10ms TTL=127
Reply from 163.202.252.86: bytes=32 time<10ms TTL=127
Reply from 163.202.252.86: bytes=32 time<10ms TTL=127

Ping statistics for 163.202.252.86:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\VZM1203>

--------------------

when i telnet using the command telnet lolita 80
getting the blank screen and when i press control+C
i am getting the below response

----------
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Wed, 27 Jun 2007 12:57:33 GMT
Connection: close
Content-Length: 35

<h1>Bad Request (Invalid Verb)</h1>

Connection to host lost.

C:\Documents and Settings\VZM1203>
------------

Regards
Viswa
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 5:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to talk to the team responsible for the webservice you are trying to invoke.

They can tell you what they mean by "Invalid Hostname", and should be able to tell you how to fix it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
matam_viswa
PostPosted: Wed Jun 27, 2007 6:40 am    Post subject: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi GrandMaster,

The webservice working fine. I am using the Java program, for this its working fine. my Java program looks like


The Java program
Code:


tring wsdlLocation = args[0];
       String operationName =   args[1];
       String portName = args[2];
   
      
       if(args.length - 3 != 0) {
          parms = new String[args.length - 3];
          for (int i = 0; i < parms.length; i++) {
             parms[i] = args[i + 3];
         }
       }
          DynamicWebServiceClient invoker = new DynamicWebServiceClient(wsdlLocation);
           HashMap map = invoker.invokeMethod(operationName, portName,10000, parms);
                  
          for (Iterator it = map.entrySet().iterator(); it.hasNext();) {
               Map.Entry entry = (Map.Entry) it.next();
               String key = (String) entry.getKey();
               Object value = entry.getValue();
               if (value instanceof Element) {
                   System.out.println("====== " + key + " ======");
                   XMLUtils.ElementToStream((Element) value, System.out);
                   System.out.println("=========================");
               } else {
                   System.out.println(key + "=" + value);
               }
           }
          }
      


In command prompt I run the program and getting succfull response from the service.

To run the Java program am using the below bat file

----------
Code:


PATH=.;C:\Program Files\Java\jre1.5.0_04\bin;C:C:\Program Files\Java\jre1.5.0_04\lib
java -jar WebServiceClient.jar "C:/WebServiceClient/Catch.WSDL" RequestTaxYears WCatchSoap "<TXLifeRequest><TransRefGUID>c3e2d840d4d8c4f14040404040404040c0abb2c606341409</TransRefGUID><TransType tc='310'>Contribution Certificate</TransType><TransExeDate>2007-04-01</TransExeDate><OLifE><Holding id='HOLD1'><HoldingKey>10000634</HoldingKey><OLifEExtension VendorCode= 'LIB' SystemCode= 'CATCH'><DocumentType tc= '1'>Contribution Certificate</DocumentType></OLifEExtension></Holding></OLifE></TXLifeRequest>"
pause



Response from the webservice

----------------

C:\Program Files\Java\jre1.5.0_04\lib>PATH=.;C:\Program Files\Java\jre1.5.0_04\b
in;C:C:\Program Files\Java\jre1.5.0_04\lib

C:\Program Files\Java\jre1.5.0_04\lib>java -jar WebServiceClient.jar "C:/WebServ
iceClient/Catch.WSDL" RequestTaxYears WCatchSoap "<TXLifeRequest><TransRefGUID>c
3e2d840d4d8c4f14040404040404040c0abb2c606341409</TransRefGUID><TransType tc='310
'>Contribution Certificate</TransType><TransExeDate>2007-04-01</TransExeDate><OL
ifE><Holding id='HOLD1'><HoldingKey>10000634</HoldingKey><OLifEExtension VendorC
ode= 'LIB' SystemCode= 'CATCH'><DocumentType tc= '1'>Contribution Certificate</D
ocumentType></OLifEExtension></Holding></OLifE></TXLifeRequest>"
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
>RequestTaxYears>node=<TXLifeRequest><TransRefGUID>c3e2d840d4d8c4f14040404040404
040c0abb2c606341409</TransRefGUID><TransType tc='310'>Contribution Certificate</
TransType><TransExeDate>2007-04-01</TransExeDate><OLifE><Holding id='HOLD1'><Hol
dingKey>10000634</HoldingKey><OLifEExtension VendorCode= 'LIB' SystemCode= 'CATC
H'><DocumentType tc= '1'>Contribution Certificate</DocumentType></OLifEExtension
></Holding></OLifE></TXLifeRequest>
>[color=blue]RequestTaxYearsResponse>RequestTaxYearsResult=<?xml version="1.0" encoding="utf
-16"?><TXLifeRequest><TransRefGUID></TransRefGUID><TransType tc="310">FormInstan
ce Search</TransType><TransExeDate></TransExeDate><TransExeTime>0</TransExeTime>
<Transresult><ResultCode tc="4">Scuess</ResultCode><RecordsFound>1</RecordsFound
></Transresult><OLifE><Holding id="HOLD1"><HoldingKey>XXXXXX</HoldingKey><AsOfDa
te>9999-02-28
</AsOfDate><OLifEExtension><DocumentType tc="2">Contribution Certificate</
DocumentType></OLifEExtension></Holding></OLifE></TXLifeRequest>
C:\Program Files\Java\jre1.5.0_04\lib>pause
Press any key to continue . . .
[/color]
---------------------

Regards
Viswa
Back to top
View user's profile Send private message
matam_viswa
PostPosted: Wed Jun 27, 2007 6:53 am    Post subject: SOAPAction error for webservice(HTTPRequestNode) Reply with quote

Novice

Joined: 30 Jul 2006
Posts: 17

Hi marcin,

Please find the below request &response trace results.


Before HTTPRequest Node

-------------
(
(0x01000000):Properties = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-27 14:18:54.250'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'WSIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Format = 'MQSTR '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d512042514d2020202020202020208f6582462000a702'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'BQM '
(0x03000000):UserIdentifier = 'vzm1203 '
(0x03000000):AccountingToken = X'16010515000000fa4f0c2f235f636b07e53b2bebf5000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = '30\eclipse\jre\bin\javaw.exe'
(0x03000000):PutDate = DATE '2007-06-27'
(0x03000000):PutTime = GMTTIME '14:18:54.250'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000021):MRM = (
(0x01000000)http://schemas.xmlsoap.org/soap/envelope/:Body = (
(0x01000000)http://www.liberty.co.za/:RequestTaxYears = (
(0x01000000):node = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d512042514d2020202020202020208f6582462000a702'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):HoldingKey = '10000634'
(0x01000000):OLifEExtension = (
(0x03000000):VendorCode = 'LIB'
(0x03000000):SystemCode = 'CATCH'
(0x01000000):DocumentType = (
(0x03000000):tc = '1'
(0x02000000): = 'Contribution Certificate'
)
)
)
)
)
)
)
)
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):SOAPAction = 'http://www.liberty.co.za/RequestTaxYears'
)
)



------Environment--------

(
(0x01000000):MQMD = (
(0x03000000):SourceQueue = 'WSIN'
(0x03000000):Transactional = TRUE
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Format = 'MQSTR '
(0x03000000):Version = 2
(0x03000000):Report = 0
(0x03000000):MsgType = 8
(0x03000000):Expiry = -1
(0x03000000):Feedback = 0
(0x03000000):Priority = 0
(0x03000000):Persistence = 0
(0x03000000):MsgId = X'414d512042514d2020202020202020208f6582462000a702'
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000'
(0x03000000):BackoutCount = 0
(0x03000000):ReplyToQ = ' '
(0x03000000):ReplyToQMgr = 'BQM '
(0x03000000):UserIdentifier = 'vzm1203 '
(0x03000000):AccountingToken = X'16010515000000fa4f0c2f235f636b07e53b2bebf5000000000000000000000b'
(0x03000000):ApplIdentityData = ' '
(0x03000000):PutApplType = 11
(0x03000000):PutApplName = '30\eclipse\jre\bin\javaw.exe'
(0x03000000):PutDate = DATE '2007-06-27'
(0x03000000):PutTime = GMTTIME '14:18:54.250'
(0x03000000):ApplOriginData = ' '
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000'
(0x03000000):MsgSeqNumber = 1
(0x03000000):Offset = 0
(0x03000000):MsgFlags = 0
(0x03000000):OriginalLength = -1
)
(0x01000000):Variables = (
(0x03000000):Contract_Number = '10000634'
(0x03000000):XMLMessage1 = 'HTTP Request Flow Testing'
(0x01000000):XMLMessage = (
(0x01000000):TXLifeRequest = (
(0x03000000):TransRefGUID = '414d512042514d2020202020202020208f6582462000a702'
(0x03000000):TransType = 'Contribution Certificate'
(0x03000000):TransExeDate = '2007-04-01'
(0x01000000):OLifE = (
(0x01000000):Holding = (
(0x03000000):id = 'HOLD1'
(0x03000000):HoldingKey = '10000634'
(0x01000000):OLifEExtension = (
(0x03000000):VendorCode = 'LIB'
(0x03000000):SystemCode = 'CATCH'
(0x01000000):DocumentType = (
(0x03000000):tc = '1'
(0x02000000): = 'Contribution Certificate'
)
)
)
)
)
)
)
(0x01000000):Properties1 = (
(0x03000000):MessageSet = 'J8971Q0002001'
(0x03000000):MessageType = 'Envelope'
(0x03000000):MessageFormat = 'XML1'
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = TRUE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-27 14:18:54.250'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = ''
)
)

------------

After HTTPRequestNode

-----------


(
(0x01000000):Properties = (
(0x03000000):MessageSet = ''
(0x03000000):MessageType = ''
(0x03000000):MessageFormat = ''
(0x03000000):Encoding = 546
(0x03000000):CodedCharSetId = 1208
(0x03000000):Transactional = FALSE
(0x03000000):Persistence = FALSE
(0x03000000):CreationTime = GMTTIMESTAMP '2007-06-27 14:18:21.387'
(0x03000000):ExpirationTime = -1
(0x03000000):Priority = 0
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000'
(0x03000000):ReplyProtocol = 'MQ'
(0x03000000):Topic = NULL
(0x03000000):ContentType = 'text/html'
)
(0x01000000):HTTPRequestHeader = (
(0x03000000):SOAPAction = 'http://www.liberty.co.za/RequestTaxYears'
(0x03000000):Content-Length = '56'
)
(0x01000000):HTTPResponseHeader = (
(0x03000000):X-Original-HTTP-Status-Line = 'HTTP/1.1 400 Bad Request'
(0x03000000):X-Original-HTTP-Status-Code = 400
(0x03000000):Content-Type = 'text/html'
(0x03000000):Date = 'Wed, 27 Jun 2007 14:18:54 GMT'
(0x03000000):Connection = 'close'
(0x03000000):Content-Length = '39'
)
(0x01000000):BLOB = (
(0x03000000):UnknownParserName = ''
(0x03000000):BLOB = X'3c68313e42616420526571756573742028496e76616c696420486f73746e616d65293c2f68313e'
)
)
--------



And also I tried with setting the Host name
Code:


   SET OutputRoot.HTTPRequestHeader.Host='163.202.252.86';

I am getting the response

----------
SOAPAction: http://www.liberty.co.za/RequestTaxYears
Host: 163.202.252.86
Content-Length: 78
----------

If remove this statement i am getting the same error
-------
SOAPAction: http://www.liberty.co.za/RequestTaxYears..Content-Length: 56....
<h1>Bad Request (Invalid Hostname)</h1>
----------





Regards
Viswa
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 7:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Use Nettool or TCP/IP monitor.

Capture the message you send via the Java program, and the message you send via the Broker.

Compare the two.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Jun 27, 2007 1:13 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi all,

Slow down, relax, read the code posted

I think the error is in the ordering of the code used. This:

Code:
SET Environment.Variables.XMLMessage = InputRoot.XML
SET OutputRoot.MRM.tns:Body.ns:RequestTaxYears.node =  Environment.Variables.XMLMessage;
SET OutputRoot.HTTPRequestHeader.SOAPAction='http://www.liberty.co.za/RequestTaxYears';


Will create the HTTPRequestHeader AFTER the MRM message, and so will be the BODY of the message sent to the web server!

It needs to be re-ordered as:

Code:
SET Environment.Variables.XMLMessage = InputRoot.XML
SET OutputRoot.HTTPRequestHeader.SOAPAction='http://www.liberty.co.za/RequestTaxYears';
SET OutputRoot.MRM.tns:Body.ns:RequestTaxYears.node =  Environment.Variables.XMLMessage;



Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAPAction error for webservice(HTTPRequestNode)
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.