BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-11-2009, 08:31 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8520
PIN: N/A
Carrier: TIM
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default SOAP complex type in header

Please Login to Remove!

I am learning how to consume .net web services. I am using 4.7 JDE in Eclipse, testing in the Curve (8520) simulator 4.6.1.272. I generated the stubs using Sun Java Wireless Toolkit 2.5. One of the services requires a complex type in the header:

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlnssi="" xmlnssd="" xmlns:soap12="">
<soap12:Header>
<AuthHeader xmlns="">
<UserId>string</UserId>
<Token>string</Token>
</AuthHeader>
</soap12:Header>
<soap12:Body>
<PlainTextTest xmlns="" />
</soap12:Body>
</soap12:Envelope>

All links (tempuri) were removed from above due to this post restrictions.

Where the string values for UserId and Token must be changed for the correct string values.

Is it possible to do that using the stubs created by the toolkit?
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.