Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: SOAP Help Building Request With Nested Tags: msg#00015

text.xml.soap.user

Subject: Re: SOAP Help Building Request With Nested Tags

The BeanSerializer names elements based on the names of bean properties.
Therefore, the WSCredentials property of ComHdr would be serialized as
<WSCredentials>....</WSCredentials>, and the UserName property of WSCredentials
would be serialized as <UserName>.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message -----
From: "Greg Pedder" <gpedder@xxxxxxxxxxxxxxx>
To: <soap-user@xxxxxxxxxxxxx>
Sent: Tuesday, January 13, 2004 7:13 AM
Subject: Re: SOAP Help Building Request With Nested Tags


Scott

Thanks alot for your response.

Let me ask this. I still don't understand how the tags <> <> are created for
WSCredentials class.
Do they automatically get created based on the class name and members or would
I need to do something
like this within the WSCredentials class?


public class _WSCredentials {

public string UserName
public string Password;

public void setUsername( String username ) {
UserName = "<Username>" +username +"</Username>;
}

public void setPassword( String password ) {
UserName = "<Password>" +password +"</Password>;
}


}

Thanks..


----- Original Message -----
From: Greg Pedder
To: soap-user@xxxxxxxxxxxxx
Sent: Sunday, January 11, 2004 11:43 PM
Subject: SOAP Help Building Request With Nested Tags


I have been struggling with Apache SOAP to try and build a request.
Specifically, I don't understand how to embed these elements into the Header
and Body sections. More specifically, how to do this nested tags.
Thanks for any advice you can provide.

Below, is a sample of the request I need to send to the server.


<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<SOAP-ENV:Header>
<ContinueHeader xmlns="http://www.openuri.org/2002/04/soap/conversation/";>
<uniqueID>111111111111111</uniqueID>
</ContinueHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<subscribe xmlns="http://xxxx/xxxx/xxxx/service";>
<comHdr>
<WSCredentials>
<UserName>xxxxxxx</UserName>
<Password>xxxxxxxx</Password>
</WSCredentials>
</comHdr>
</subscribe>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


I can add the <UserName>xxxxxxx</UserName> <Password>xxxxxxxx</Password> to
the body of the request using:

Vector parms = new Vector();
parms.addElement(new Parameter("UserName", String.class, username, null));
parms.addElement(new Parameter("Token", String.class, password, null));
call.setParams(parms);

I just don't know how to add those tags within the <comHdr> and
<WSCredentials> tags.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation