[WSS4J] How to specify Custom Protocol in WSDL.EXE

"Nachiappan Narayanan" <Nachi-KbPxBdIIuGhWk0Htik3J/[email protected]> Thu, 5 Feb 2004 15:57:05 +0530
Newsgroups gmane.text.xml.wss4j
Organization Roxer.com Pvt. Ltd.
Message-ID <006101c3ebd2$a3944a90$1f05a8c0@NACHU>
This is a multi-part message in MIME format.

------=_NextPart_000_005E_01C3EC00.B3911210
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

All,

I have a web service, which is WS-Security Complaint(UserNameToken) =
running in Java.

Using WSDL.EXE, I generated the client code, but the generated client =
code extends "System.Web.Services.Protocols.SoapHttpClientProtocol".

In order to use/add username token in the client code, i have to extend =
"Microsoft.Web.Services.WebServicesClientProtocol". Right now im =
changing this manually, Is there any way by which we can specify the =
WSDL Compiler to do this automatically?

Eg. C:\DOTNETCLIENT>wsdl /protocol:WebServices MyService.wsdl

Regards,
Nachiappan.N
------=_NextPart_000_005E_01C3EC00.B3911210
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a web service, which is =
WS-Security=20
Complaint(UserNameToken) running in Java.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Using WSDL.EXE, I generated the client =
code, but=20
the generated client code extends=20
"System.Web.Services.Protocols.SoapHttpClientProtocol".</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In order to use/add username token in =
the client=20
code, i have to extend =
"Microsoft.Web.Services.WebServicesClientProtocol". Right=20
now im changing this manually, Is there any way by which we can specify =
the WSDL=20
Compiler to do this automatically?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Eg. C:\DOTNETCLIENT&gt;wsdl =
/protocol:WebServices=20
MyService.wsdl</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>Regards,<BR>Nachiappan.N</FONT></DIV></BODY></HTML>

------=_NextPart_000_005E_01C3EC00.B3911210--



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn