• Post Reply Bookmark Topic Watch Topic
  • New Topic

populating soap header from client?  RSS feed

 
Dan Cleary
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

In using Weblogic 8.1 to write a web services client, I can't determine how to populate the header portion of the soap request from my Java client code.
The user defined class, ARAuthenticate, is generated as part of clientgen. However, I see no methods to include a populated ARAuthenticate as part of the web service call.

thanks - Dan

/* -------------- clipped from wsdl --------------------- */

<wsdl ortType name="HeartBeatPortType">
<wsdl peration name="HeartBeat">
<soap:header message="s:ARAuthenticate" part="parameters" use="literal">
</soap:header>
<wsdl:input message="s:HeartBeatSoapIn"/>
<wsdl utput message="s:HeartBeatSoapOut"/>
</wsdl peration>
</wsdl ortType>

/* -------------- clipped from client code --------------------- */
HeartBeatService_Impl ws = new HeartBeatService_Impl(argv[0]);
HeartBeatPortType port = ws.getHeartBeatPortType();
SetInputMap sim = new SetInputMap(8);
SetOutputMap sop = port.heartBeat(sim);
 
Puru Gujarati
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had used client side JAX-RPC handler to add auth. and other info. in our project (under weblogic 8.1 sp4).
You can go to JAX-RPC Handler at SCDJWS Study Resource to find more information.

Puru
[ February 01, 2006: Message edited by: Puru Gujarati ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article describes how to use SOAP headers with JAX-RPC.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!