Thanks a lot Pete, that did the job.

Anyway, I meanwhile encountered a new problem:
myCall.invoke(url, "") produces a ServletException: Error building response
envelope

Now what could be the reason for this?



> -----Ursprüngliche Nachricht-----
> Von:  Roumeliotis, Pete [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 4. April 2002 14:51
> An:   '[EMAIL PROTECTED]'
> Betreff:      RE: URL and port
> 
> 
> Stefan,
> 
> Try this:
> 
> Using your web browser, go to the main SOAP index page, probably something
> like http://localhost:8080/soap/index.html.  Click on the "Visit" link.
> You
> should see something like "SOAP RPC Router...Sorry. I don't speak via HTTP
> GET........", etc...  The proper SOAP service URL is this page, which
> should
> be something like http://localhost:8080/soap/servlet/rpcrouter.  This is
> the
> service URL to use.  So in your java code, do the following:
> 
>    URL url = nw URL ("http://localhost:8080/soap/servlet/rpcrouter";);
>    ....set up the call object with method, parms, etc....
>    callObject.invoke(url,"");   
> 
> Hopefully, that will work.
> 
> Good Luck,
> Pete R.
> 
> 
> 
> -----Original Message-----
> From: Lenhart Stefan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 3:11 AM
> To: [EMAIL PROTECTED]
> Subject: URL and port
> 
> 
> Hi everybody!
> 
> I'm quite confused about the URL I have to use for the invoke method of
> the
> Call class. In the examples I've found, only the value found in the
> <soap:address location=.....> tag of the corresponding WSDL file is used. 
> 
> However, when I try this for my own sample WebService, I get a SOAP Fault:
> "Missing port information". I tried to add the port Tomcat displays when I
> point my browser to the service's URL, i.e. using the URL
> "http://localhost:8080/sample/service/PORTNAME_AS_STATED_BY_TOMCAT";. It
> doesn't work this way either, I'm getting another SOAP Fault: "Internal
> server error", but this could be a problem with the service itself,
> although
> it worked fine when I invoked it's methods directly.
> 
> Anyway, the big question for me is: Do I have to add the port name to the
> URL object in Call.invoke(url, "") or not? If so, why must I and the guys
> doing these example service don't have to?
> 
> I'm grateful for any hints.
> Thanks a lot in advance!
> 
>  
> Mit freundlichen Gruessen
> 
> Stefan Lenhart
> 
> R. Boeker Consulting GmbH
> Ein Unternehmen der R. Boeker Unternehmensgruppe AG
> RBU AG Zweigniederlassung Frankfurt
> Mergenthalerallee 77
> D-65760 Eschborn
> 
> Tel.:  +49 (61 96) 4 70-883
> Fax.:  +49 (61 96) 4 70-8 90
> E-Mail:        mailto:[EMAIL PROTECTED]
> Internet: http://www.rbu.de
> 
> Diese eMail enthält möglicherweise vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder
> diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten diese eMail. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser eMail ist nicht gestattet.
> 
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.

Reply via email to