Query about WSDL File

Hi

I am using Netbeans to create a test client that uses an existing web service that was created using .NET.

The WSDL file contains a reference to an object called AuthHeader which when the web reference is referenced in a .Net application can be referenced an instantiated in a similar manner to an standard java object.

This is the VB.NET code to do it

Dim oHeader As New <reference>.AuthHeader

oHeader.Username = "MyUserName"

oHeader.Password = "MyPassword"

However when I add the web reference in net beans and generate the code all I get are the two methods that the web service implements which don't work without the ability to create the AuthHEader objects

I have attached the schema for the wsdl here - the * characters are there by design so please ignore.

Can anyone help - thanks

<?xml version="1.0" encoding="utf-8"?>

- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="***.****.****" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="***.***.*****" xmlns="http://schemas.xmlsoap.org/wsdl/">

- <types>

- <s:schema elementFormDefault="qualified" targetNamespace="***.******.****">

- <s:element name="SendSMSDefault">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="MsgBody" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="SendSMSDefaultResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="SendSMSDefaultResult" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

<s:element name="AuthHeader" type="s0:AuthHeader" />

- <s:complexType name="AuthHeader">

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />

</s:sequence>

</s:complexType>

- <s:element name="SendSMS">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="Account" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="s:string" />

<s:element minOccurs="0" maxOccurs="1" name="MsgBody" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

- <s:element name="SendSMSResponse">

- <s:complexType>

- <s:sequence>

<s:element minOccurs="0" maxOccurs="1" name="SendSMSResult" type="s:string" />

</s:sequence>

</s:complexType>

</s:element>

</s:schema>

</types>

- <message name="SendSMSDefaultSoapIn">

<part name="parameters" element="s0:SendSMSDefault" />

</message>

- <message name="SendSMSDefaultSoapOut">

<part name="parameters" element="s0:SendSMSDefaultResponse" />

</message>

- <message name="SendSMSDefaultAuthHeader">

<part name="AuthHeader" element="s0:AuthHeader" />

</message>

- <message name="SendSMSSoapIn">

<part name="parameters" element="s0:SendSMS" />

</message>

- <message name="SendSMSSoapOut">

<part name="parameters" element="s0:SendSMSResponse" />

</message>

- <message name="SendSMSAuthHeader">

<part name="AuthHeader" element="s0:AuthHeader" />

</message>

- <portType name="SendSoap">

- <operation name="SendSMSDefault">

<documentation>Send a text message to a default account according to valid header credentials passsed to the service.

<strong>Parameters</strong><table border=1><tr><td>MsgBody</td><td>Body of the text message (max 160 chars).</td></tr><tr><td>MobileNumber</td><td>Mobile phone number of the message recipient.</td></tr></table>

<strong>Returns</strong>

A string value representing the status of the request.</documentation>

<input message="s0:SendSMSDefaultSoapIn" />

<output message="s0:SendSMSDefaultSoapOut" />

</operation>

- <operation name="SendSMS">

<documentation>Send a text message to a default account according to valid header credentials passsed to the service.

<strong>Parameters</strong><table border=1><tr><td>Account</td><td>SMS provider account that will be used to send the message.</td></tr><tr><td>MsgBody</td><td>Body of the text message (max 160 chars).</td></tr><tr><td>MobileNumber</td><td>Mobile phone number of the message recipient.</td></tr></table>

<strong>Returns</strong>

A string value representing the status of the request.</documentation>

<input message="s0:SendSMSSoapIn" />

<output message="s0:SendSMSSoapOut" />

</operation>

</portType>

- <binding name="SendSoap" type="s0:SendSoap">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />

- <operation name="SendSMSDefault">

<soap:operation soapAction="***.******.****/SendSMSDefault" style="document" />

- <input>

<soap:body use="literal" />

<soap:header message="s0:SendSMSDefaultAuthHeader" part="AuthHeader" use="literal" />

</input>

- <output>

<soap:body use="literal" />

</output>

</operation>

- <operation name="SendSMS">

<soap:operation soapAction="***.******.****/SendSMS" style="document" />

- <input>

<soap:body use="literal" />

<soap:header message="s0:SendSMSAuthHeader" part="AuthHeader" use="literal" />

</input>

- <output>

<soap:body use="literal" />

</output>

</operation>

</binding>

- <service name="Send">

<documentation><strong>Send an SMS message using a selected or default account.</strong></documentation>

- <port name="SendSoap" binding="s0:SendSoap">

<soap:address location="https://***.********.***/***/***_*****.asmx" />

</port>

</service>

</definitions>

[7262 byte] By [rjh0361a] at [2007-10-3 3:56:44]
# 1
I have the same problem, if you resolve it, please help me!!
Oz.a at 2007-7-14 21:55:00 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...