You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Jayakumar <ja...@espacetech.com> on 2001/01/07 15:08:37 UTC
Microsoft SOAP client and Apache Soap Server
Hi Soap users
I am very new to SOAP. I am able to access Apache SOAP server with Java client and MS Soap with VB client. The problem is that, when I tried to
access Apache SOAP server from the VB client, I am facing some difficulty in that. Even though some question regarding this problem posted in this
mailing list itself, I couldn't find a concrete answer. Please help me regarding this.
Below is the client code and the server side output (in the tomcat's console). I deployed the wsdl file at the server.
----------------------------------------------------------------------------------- wsdl file -----------------------------------------------------------------------------
<?xml version='1.0' encoding='UTF-16' ?>
<!-- Generated 01/06/01 by Microsoft SOAP SDK WSDL File Generator, Version 1.0 -->
<definitions name ='TestingService' targetNamespace = 'http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:tns='http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='EchoString'>
</message>
<message name='EchoStringResponse'>
<part name='Result' type='xsd:string'/>
</message>
<portType name='TestingPortType'>
<operation name='EchoString'>
<input message='tns:EchoString' name='EchoString' />
<output message='tns:EchoStringResponse' name='EchoStringResponse' />
</operation>
</portType>
<binding name='TestingBinding' type='tns:TestingPortType' >
<soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http' />
<operation name='EchoString' >
<soap:operation soapAction='' />
<input>
<soap:body use='encoded' namespace='urn:Testing' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</input>
<output>
<soap:body use='encoded' namespace='urn:Testing' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</output>
</operation>
</binding>
<service name='TestingService' >
<port name='TestingPortType' binding='tns:TestingBinding' >
<soap:address location='http://localhost:8080/soap/servlet/rpcrouter' />
</port>
</service>
</definitions>
----------------------------------------------------------------------------------- end of wsdl file -----------------------------------------------------------------------------
----------------------------------------------------------------------------------- vbscript client code -----------------------------------------------------------------------------
set soapclient = CreateObject("MSSOAP.SoapClient")
call soapclient.mssoapinit("http://localhost:8080/soap/Sample1/Testing.wsdl", "TestingService", "TestingPortType")
wscript.echo soapclient.EchoString()
On Error Resume Next
wscript.echo soapclient.faultcode
wscript.echo soapclient.faultstring
wscript.echo soapclient.faultactor
wscript.echo soapclient.detail
----------------------------------------------------------------------------------- end of vbscript client code -----------------------------------------------------------------------------
when I execute it, I got the following at the server side (I modified the RPCRouterServlet file to find the input from the client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the server side (tomcat 3.2.1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>(Sun Jan 07 19:15:05 GMT+05:30 2001) Processing SOAP request...
Input from client is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:EchoString xmlns:m="urn:Testing"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2001-01-07 07:15:05 - Ctx( /soap ): 400 R( /soap + /servlet/rpcrouter + null) Content type must
be: 'text/xml'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end of in the server side ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any useful help or link will be appreciated. Thanks in advance.
Regards,
jayakumar
*****************************************************************************
èSpace Technologies Ltd.,
"Greams Dugar", Third floor,
No. 149, Greams Road,
Chennai - 600 006.
Phone no: 044 - 829 3322 / 23 / 24 / 25
Fax no: 044 - 829 3328
E-m@il: jayakumar@espacetech.com (or)
jai_samurai@123india.com
****************************************************************************
Obstacles are the things a man sees, when he takes his eyes off his goal.
****************************************************************************
return array
Posted by Oren Dean <or...@interestpool.com>.
Is it possible to return arrays from the soap server? I looked at the
AddressBook examlpe and noticed that the "getAllListings" method builds an
XML document manualy, isn't there any
"automatic" way to do it?
oren
RE: Microsoft SOAP client and Apache Soap Server
Posted by Oren Dean <or...@interestpool.com>.
I downloaded the new SOAP Bets release, and I have a problem to make it work
with the Apache SOAP server, I think the problem is that the "Content-type:
text/xml" is missing in the http header.
Does anyone know how to set it manualy?
-----Original Message-----
From: Sivashankar Sangarapillai [mailto:sangarap@bridgeport.edu]
Sent: Sunday, January 07, 2001 9:35 PM
To: soap-user@xml.apache.org
Subject: RE: Microsoft SOAP client and Apache Soap Server
New SOAP Beta release support WSDL. You can download it from msdn. Here is
the link
http://msdn.microsoft.com/xml/general/soap2new.asp
~Shankar
|******************************************
| Sivashankar Sangarapillai
| (MCSD, MCP+SB, MCP, SCP- JAVA2)
| <e> ssivashankar@glaxer.com
*******************************************
-----Original Message-----
From: Jayakumar [mailto:jayakumar@espacetech.com]
Sent: Sunday, January 07, 2001 9:09 AM
To: soap-user@xml.apache.org
Subject: Microsoft SOAP client and Apache Soap Server
Hi Soap users
I am very new to SOAP. I am able to access Apache SOAP server with Java
client and MS Soap with VB client. The problem is that, when I tried to
access Apache SOAP server from the VB client, I am facing some difficulty in
that. Even though some question regarding this problem posted in this
mailing list itself, I couldn't find a concrete answer. Please help me
regarding this.
Below is the client code and the server side output (in the tomcat's
console). I deployed the wsdl file at the server.
----------------------------------------------------------------------------
------- wsdl
file -----------------------------------------------------------------------
------
<?xml version='1.0' encoding='UTF-16' ?>
<!-- Generated 01/06/01 by Microsoft SOAP SDK WSDL File Generator, Version
1.0 -->
<definitions name ='TestingService' targetNamespace =
'http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:tns='http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='EchoString'>
</message>
<message name='EchoStringResponse'>
<part name='Result' type='xsd:string'/>
</message>
<portType name='TestingPortType'>
<operation name='EchoString'>
<input message='tns:EchoString' name='EchoString' />
<output message='tns:EchoStringResponse' name='EchoStringResponse' />
</operation>
</portType>
<binding name='TestingBinding' type='tns:TestingPortType' >
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http' />
<operation name='EchoString' >
<soap:operation soapAction='' />
<input>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</input>
<output>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</output>
</operation>
</binding>
<service name='TestingService' >
<port name='TestingPortType' binding='tns:TestingBinding' >
<soap:address location='http://localhost:8080/soap/servlet/rpcrouter'
/>
</port>
</service>
</definitions>
----------------------------------------------------------------------------
------- end of wsdl
file -----------------------------------------------------------------------
------
----------------------------------------------------------------------------
------- vbscript client
code -----------------------------------------------------------------------
------
set soapclient = CreateObject("MSSOAP.SoapClient")
call
soapclient.mssoapinit("http://localhost:8080/soap/Sample1/Testing.wsdl",
"TestingService", "TestingPortType")
wscript.echo soapclient.EchoString()
On Error Resume Next
wscript.echo soapclient.faultcode
wscript.echo soapclient.faultstring
wscript.echo soapclient.faultactor
wscript.echo soapclient.detail
----------------------------------------------------------------------------
------- end of vbscript client
code -----------------------------------------------------------------------
------
when I execute it, I got the following at the server side (I modified the
RPCRouterServlet file to find the input from the client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the server side (tomcat 3.2.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>(Sun Jan 07 19:15:05 GMT+05:30 2001) Processing SOAP request...
Input from client is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:EchoString xmlns:m="urn:Testing"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2001-01-07 07:15:05 - Ctx( /soap ): 400 R( /soap + /servlet/rpcrouter +
null) Content type must
be: 'text/xml'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end of in the server side
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any useful help or link will be appreciated. Thanks in advance.
Regards,
jayakumar
****************************************************************************
*
èSpace Technologies Ltd.,
"Greams Dugar", Third floor,
No. 149, Greams Road,
Chennai - 600 006.
Phone no: 044 - 829 3322 / 23 / 24 / 25
Fax no: 044 - 829 3328
E-m@il: jayakumar@espacetech.com (or)
jai_samurai@123india.com
****************************************************************************
Obstacles are the things a man sees, when he takes his eyes off his
goal.
****************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: Microsoft SOAP client and Apache Soap Server
Posted by Oren Dean <or...@interestpool.com>.
I downloaded the new SOAP Bets release, and I have a problem to make it work
with the Apache SOAP server, I think the problem is that the "Content-type:
text/xml" is missing in the http header.
Does anyone know how to set it manualy?
-----Original Message-----
From: Sivashankar Sangarapillai [mailto:sangarap@bridgeport.edu]
Sent: Sunday, January 07, 2001 9:35 PM
To: soap-user@xml.apache.org
Subject: RE: Microsoft SOAP client and Apache Soap Server
New SOAP Beta release support WSDL. You can download it from msdn. Here is
the link
http://msdn.microsoft.com/xml/general/soap2new.asp
~Shankar
|******************************************
| Sivashankar Sangarapillai
| (MCSD, MCP+SB, MCP, SCP- JAVA2)
| <e> ssivashankar@glaxer.com
*******************************************
-----Original Message-----
From: Jayakumar [mailto:jayakumar@espacetech.com]
Sent: Sunday, January 07, 2001 9:09 AM
To: soap-user@xml.apache.org
Subject: Microsoft SOAP client and Apache Soap Server
Hi Soap users
I am very new to SOAP. I am able to access Apache SOAP server with Java
client and MS Soap with VB client. The problem is that, when I tried to
access Apache SOAP server from the VB client, I am facing some difficulty in
that. Even though some question regarding this problem posted in this
mailing list itself, I couldn't find a concrete answer. Please help me
regarding this.
Below is the client code and the server side output (in the tomcat's
console). I deployed the wsdl file at the server.
----------------------------------------------------------------------------
------- wsdl
file -----------------------------------------------------------------------
------
<?xml version='1.0' encoding='UTF-16' ?>
<!-- Generated 01/06/01 by Microsoft SOAP SDK WSDL File Generator, Version
1.0 -->
<definitions name ='TestingService' targetNamespace =
'http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:tns='http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='EchoString'>
</message>
<message name='EchoStringResponse'>
<part name='Result' type='xsd:string'/>
</message>
<portType name='TestingPortType'>
<operation name='EchoString'>
<input message='tns:EchoString' name='EchoString' />
<output message='tns:EchoStringResponse' name='EchoStringResponse' />
</operation>
</portType>
<binding name='TestingBinding' type='tns:TestingPortType' >
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http' />
<operation name='EchoString' >
<soap:operation soapAction='' />
<input>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</input>
<output>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</output>
</operation>
</binding>
<service name='TestingService' >
<port name='TestingPortType' binding='tns:TestingBinding' >
<soap:address location='http://localhost:8080/soap/servlet/rpcrouter'
/>
</port>
</service>
</definitions>
----------------------------------------------------------------------------
------- end of wsdl
file -----------------------------------------------------------------------
------
----------------------------------------------------------------------------
------- vbscript client
code -----------------------------------------------------------------------
------
set soapclient = CreateObject("MSSOAP.SoapClient")
call
soapclient.mssoapinit("http://localhost:8080/soap/Sample1/Testing.wsdl",
"TestingService", "TestingPortType")
wscript.echo soapclient.EchoString()
On Error Resume Next
wscript.echo soapclient.faultcode
wscript.echo soapclient.faultstring
wscript.echo soapclient.faultactor
wscript.echo soapclient.detail
----------------------------------------------------------------------------
------- end of vbscript client
code -----------------------------------------------------------------------
------
when I execute it, I got the following at the server side (I modified the
RPCRouterServlet file to find the input from the client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the server side (tomcat 3.2.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>(Sun Jan 07 19:15:05 GMT+05:30 2001) Processing SOAP request...
Input from client is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:EchoString xmlns:m="urn:Testing"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2001-01-07 07:15:05 - Ctx( /soap ): 400 R( /soap + /servlet/rpcrouter +
null) Content type must
be: 'text/xml'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end of in the server side
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any useful help or link will be appreciated. Thanks in advance.
Regards,
jayakumar
****************************************************************************
*
èSpace Technologies Ltd.,
"Greams Dugar", Third floor,
No. 149, Greams Road,
Chennai - 600 006.
Phone no: 044 - 829 3322 / 23 / 24 / 25
Fax no: 044 - 829 3328
E-m@il: jayakumar@espacetech.com (or)
jai_samurai@123india.com
****************************************************************************
Obstacles are the things a man sees, when he takes his eyes off his
goal.
****************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: Microsoft SOAP client and Apache Soap Server
Posted by Sivashankar Sangarapillai <sa...@bridgeport.edu>.
New SOAP Beta release support WSDL. You can download it from msdn. Here is
the link
http://msdn.microsoft.com/xml/general/soap2new.asp
~Shankar
|******************************************
| Sivashankar Sangarapillai
| (MCSD, MCP+SB, MCP, SCP- JAVA2)
| <e> ssivashankar@glaxer.com
*******************************************
-----Original Message-----
From: Jayakumar [mailto:jayakumar@espacetech.com]
Sent: Sunday, January 07, 2001 9:09 AM
To: soap-user@xml.apache.org
Subject: Microsoft SOAP client and Apache Soap Server
Hi Soap users
I am very new to SOAP. I am able to access Apache SOAP server with Java
client and MS Soap with VB client. The problem is that, when I tried to
access Apache SOAP server from the VB client, I am facing some difficulty in
that. Even though some question regarding this problem posted in this
mailing list itself, I couldn't find a concrete answer. Please help me
regarding this.
Below is the client code and the server side output (in the tomcat's
console). I deployed the wsdl file at the server.
----------------------------------------------------------------------------
------- wsdl
file -----------------------------------------------------------------------
------
<?xml version='1.0' encoding='UTF-16' ?>
<!-- Generated 01/06/01 by Microsoft SOAP SDK WSDL File Generator, Version
1.0 -->
<definitions name ='TestingService' targetNamespace =
'http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:tns='http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='EchoString'>
</message>
<message name='EchoStringResponse'>
<part name='Result' type='xsd:string'/>
</message>
<portType name='TestingPortType'>
<operation name='EchoString'>
<input message='tns:EchoString' name='EchoString' />
<output message='tns:EchoStringResponse' name='EchoStringResponse' />
</operation>
</portType>
<binding name='TestingBinding' type='tns:TestingPortType' >
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http' />
<operation name='EchoString' >
<soap:operation soapAction='' />
<input>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</input>
<output>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</output>
</operation>
</binding>
<service name='TestingService' >
<port name='TestingPortType' binding='tns:TestingBinding' >
<soap:address location='http://localhost:8080/soap/servlet/rpcrouter'
/>
</port>
</service>
</definitions>
----------------------------------------------------------------------------
------- end of wsdl
file -----------------------------------------------------------------------
------
----------------------------------------------------------------------------
------- vbscript client
code -----------------------------------------------------------------------
------
set soapclient = CreateObject("MSSOAP.SoapClient")
call
soapclient.mssoapinit("http://localhost:8080/soap/Sample1/Testing.wsdl",
"TestingService", "TestingPortType")
wscript.echo soapclient.EchoString()
On Error Resume Next
wscript.echo soapclient.faultcode
wscript.echo soapclient.faultstring
wscript.echo soapclient.faultactor
wscript.echo soapclient.detail
----------------------------------------------------------------------------
------- end of vbscript client
code -----------------------------------------------------------------------
------
when I execute it, I got the following at the server side (I modified the
RPCRouterServlet file to find the input from the client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the server side (tomcat 3.2.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>(Sun Jan 07 19:15:05 GMT+05:30 2001) Processing SOAP request...
Input from client is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:EchoString xmlns:m="urn:Testing"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2001-01-07 07:15:05 - Ctx( /soap ): 400 R( /soap + /servlet/rpcrouter +
null) Content type must
be: 'text/xml'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end of in the server side
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any useful help or link will be appreciated. Thanks in advance.
Regards,
jayakumar
****************************************************************************
*
èSpace Technologies Ltd.,
"Greams Dugar", Third floor,
No. 149, Greams Road,
Chennai - 600 006.
Phone no: 044 - 829 3322 / 23 / 24 / 25
Fax no: 044 - 829 3328
E-m@il: jayakumar@espacetech.com (or)
jai_samurai@123india.com
****************************************************************************
Obstacles are the things a man sees, when he takes his eyes off his
goal.
****************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
return array
Posted by Oren Dean <or...@interestpool.com>.
Is it possible to return arrays from the soap server? I looked at the
AddressBook examlpe and noticed that the "getAllListings" method builds an
XML document manualy, isn't there any
"automatic" way to do it?
oren
RE: Microsoft SOAP client and Apache Soap Server
Posted by Sivashankar Sangarapillai <sa...@bridgeport.edu>.
New SOAP Beta release support WSDL. You can download it from msdn. Here is
the link
http://msdn.microsoft.com/xml/general/soap2new.asp
~Shankar
|******************************************
| Sivashankar Sangarapillai
| (MCSD, MCP+SB, MCP, SCP- JAVA2)
| <e> ssivashankar@glaxer.com
*******************************************
-----Original Message-----
From: Jayakumar [mailto:jayakumar@espacetech.com]
Sent: Sunday, January 07, 2001 9:09 AM
To: soap-user@xml.apache.org
Subject: Microsoft SOAP client and Apache Soap Server
Hi Soap users
I am very new to SOAP. I am able to access Apache SOAP server with Java
client and MS Soap with VB client. The problem is that, when I tried to
access Apache SOAP server from the VB client, I am facing some difficulty in
that. Even though some question regarding this problem posted in this
mailing list itself, I couldn't find a concrete answer. Please help me
regarding this.
Below is the client code and the server side output (in the tomcat's
console). I deployed the wsdl file at the server.
----------------------------------------------------------------------------
------- wsdl
file -----------------------------------------------------------------------
------
<?xml version='1.0' encoding='UTF-16' ?>
<!-- Generated 01/06/01 by Microsoft SOAP SDK WSDL File Generator, Version
1.0 -->
<definitions name ='TestingService' targetNamespace =
'http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:tns='http://localhost:8080/soap/Sample1/Testing.wsdl'
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<message name='EchoString'>
</message>
<message name='EchoStringResponse'>
<part name='Result' type='xsd:string'/>
</message>
<portType name='TestingPortType'>
<operation name='EchoString'>
<input message='tns:EchoString' name='EchoString' />
<output message='tns:EchoStringResponse' name='EchoStringResponse' />
</operation>
</portType>
<binding name='TestingBinding' type='tns:TestingPortType' >
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http' />
<operation name='EchoString' >
<soap:operation soapAction='' />
<input>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</input>
<output>
<soap:body use='encoded' namespace='urn:Testing'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' />
</output>
</operation>
</binding>
<service name='TestingService' >
<port name='TestingPortType' binding='tns:TestingBinding' >
<soap:address location='http://localhost:8080/soap/servlet/rpcrouter'
/>
</port>
</service>
</definitions>
----------------------------------------------------------------------------
------- end of wsdl
file -----------------------------------------------------------------------
------
----------------------------------------------------------------------------
------- vbscript client
code -----------------------------------------------------------------------
------
set soapclient = CreateObject("MSSOAP.SoapClient")
call
soapclient.mssoapinit("http://localhost:8080/soap/Sample1/Testing.wsdl",
"TestingService", "TestingPortType")
wscript.echo soapclient.EchoString()
On Error Resume Next
wscript.echo soapclient.faultcode
wscript.echo soapclient.faultstring
wscript.echo soapclient.faultactor
wscript.echo soapclient.detail
----------------------------------------------------------------------------
------- end of vbscript client
code -----------------------------------------------------------------------
------
when I execute it, I got the following at the server side (I modified the
RPCRouterServlet file to find the input from the client)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in the server side (tomcat 3.2.1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>(Sun Jan 07 19:15:05 GMT+05:30 2001) Processing SOAP request...
Input from client is
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:EchoString xmlns:m="urn:Testing"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
2001-01-07 07:15:05 - Ctx( /soap ): 400 R( /soap + /servlet/rpcrouter +
null) Content type must
be: 'text/xml'.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ end of in the server side
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Any useful help or link will be appreciated. Thanks in advance.
Regards,
jayakumar
****************************************************************************
*
èSpace Technologies Ltd.,
"Greams Dugar", Third floor,
No. 149, Greams Road,
Chennai - 600 006.
Phone no: 044 - 829 3322 / 23 / 24 / 25
Fax no: 044 - 829 3328
E-m@il: jayakumar@espacetech.com (or)
jai_samurai@123india.com
****************************************************************************
Obstacles are the things a man sees, when he takes his eyes off his
goal.
****************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org