Quantcast

Soap Header (external service invoke)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Soap Header (external service invoke)

Antonio Brito
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hello, I'm newbie using OpenESB and right now I'm facing a problem to invoke a External webservice that contains parameters in Soap Header.

Invoking the service by SoapUI the request is like you seen below:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:urn="urn:com-softwareag-entirex-rpc:LIBBRK">
   <soapenv:Header>
   <x:EntireX xmlns:x="urn:com.softwareag.entirex.xml.rt">
   <exx-natural-library>LIB</exx-natural-library>
   <exx-rpc-userID>TESTE</exx-rpc-userID>
   <exx-natural-security>TRUE</exx-natural-security>
   </x:EntireX>

   </soapenv:Header>
   <soapenv:Body>
      <urn:GTRN0003>
            <PARTE-FIXA>0000019994TESTE</PARTE-FIXA>
      </urn:GTRN0003>
   </soapenv:Body>
</soapenv:Envelope>

But, If I import WSDL and invoke By BPEL, I don't know how to pass the content of SOAP Header.

Probably it's a easy question, but I have no idea to solve this problem. In this case, if SOAP Header parameters isn't informed, a fault is raised.

Thanks in advance.

Best regards,
Antonio Brito
PS: Open-ESB Standalone 3.0.5 / Linux Debian
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Soap Header (external service invoke)

Abhidhar
This post has NOT been accepted by the mailing list yet.
Hi Antonio,

You can set the SOAP Header parameters in the "properties" option of your message variable.

The message variable structure is :

> Message variable
                     > Message Part
                                    > elements
                                              ......
                     > Properties


I hope it helps
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Soap Header (external service invoke)

Antonio Brito
This post has NOT been accepted by the mailing list yet.
Hi Abhidhar, thank you for your reply.

I tried, but when I invoke the request was frozen and I got a timeout without any answer (response).
In my case I set in bpel like this:

         <copy>
            <from>$varHeader.part1/exx-natural-library</from>
            <to variable="GTRN0003In" sxnmp:nmProperty="org.glassfish.openesb.headers.soap"/>
         </copy>


Thanks in advance.

Antonio Brito
Loading...