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 Shu <sh...@esker.fr> on 2001/05/02 11:46:22 UTC

RE: call java web service from .net?

In Apache-SOAP, rpcrouter is a servlet that redirects 
client's call (SOAP Envelope) to Apache-SOAP.
In .NET, the implementation of the endpoint is DLL based.

.NET uses a .SDL file to describe Web service. All 
informations about "urn-service ID" ("Namespace URI" in
.NET term), "SOAP Action" and "Method Name" are described
in this .SDL file.

.NET client also uses this .SDL file to communicate with
server, it is why you only need the endpoint and method
name to invoke Web method.

Unlike .NET, Apache-SOAP does not use SDL nor WSDL file.
To call .NET service method from Apache-SOAP, it is 
necessary to set needed informations in client code before
invoking the call.

You can get these informations (SDL file) through a browser
while putting as URL .NET Web service endpoint (.ASMX page) 
append a "?SDL".

Hope this helps.

Herve

> -----Message d'origine-----
> De : annie lu [mailto:annie_lufeng@yahoo.com]
> Envoye : mardi 1 mai 2001 17:24
> A : Shu
> Objet : RE: call java web service from .net?
> 
> 
> Thank you very much, Herve
> 
> How about call .net web service from java - apache
> soap?
> You know, when calling java web service from java
> client side, it's looks like
> "http://localhost:8080/soap/servlet/rpcrouter", with
> the urn-service ID and method name. but when calling
> .net web service from .net app, it's just use the url
> path to the web service, like
> "http://localhost/myservice.aspx" and method name. So
> how to call .net web service from java, no rpcrouter,
> no urn...?
> And is there any example on doing this?
> 
> thanks again!
> 
> Annie.
> 
> --- Shu <sh...@esker.fr> wrote:
> > Here is the answer:
> > 1. In
> > org/apache/soap/transport/TransportMessage.java,
> >    replace Constants.HEADERVAL_CONTENT_TYPE_UTF8 by 
> >    Constants.HEADERVAL_CONTENT_TYPE.
> > 2. You can not call Apache-SOAP API from C#. But you
> > can
> >    invoke Apache-SOAP Web Service method from C# and
> > you
> >    have not to write xml for communication.
> > 3. Exactly like Apache-SOAP Java client to
> > Apache-SOAP
> >    Java service except the end point is a .asmx file
> > and
> >    any interoperability problems solved.
> > 
> > Herve
> >    
> > 
> > > -----Message d'origine-----
> > > De : annie lu [mailto:annie_lufeng@yahoo.com]
> > > Envoye : vendredi 27 avril 2001 21:21
> > > A : shu@esker.fr
> > > Objet : call java web service from .net?
> > > 
> > > 
> > > Hi, shu
> > > I have a java web service
> > >
> >
> URI://localhost:8080/soap/sevlet/rpcrouter,urn:LifeTest,
> > > method:PassString. I can call it from java client
> > > side. But I don't know how to call it from .net. 
> > > >From your previous message, I think it's
> > possible, can
> > > you answer me some question?
> > > 
> > > > If you changed in TransportMessage "text/xml"
> > for
> > > the content type, Apache-SOAP to MS.NET can work
> > > without another modification.
> > > 
> > > 1.Where and how to change TransportMessage
> > "text/xml"
> > > ?
> > > 
> > > > If the method to invoke is getQuote, MS.NET Web
> > > Service using managed code
> > > > (here C#) takes by default:
> > > > "http://tempuri.org/getQuote" as Soap action
> > > > "http://tempuri.org/" as request namespace.
> > > > "http://tempuri.org/" as response namespace.
> > > > "getQuote" as request element name
> > > > "getQuoteResult" as response element name
> > > 
> > > 2.Can I call the soap API from C# or write the xml
> > for
> > > communication?
> > > 
> > > 3.How to call .net web service from java?
> > > 
> > > Thanks a lot!
> > > 
> > > Annie.
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - buy the things you want at great
> > prices
> > > http://auctions.yahoo.com/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org