Cool.
Can you post the exact line from the Locator class, as well as the
entire last section of the wsdl, that is, the part from
<wsdl:service name=".."
to..
</wsdl:service>
 
Also, do you know the port number that the .NET service uses?
 
(The other part that is intriguing is the session number in the url. I
have never actually seen that before).
-jeff


  _____  

        From: WALKER-GEOFF [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, October 18, 2007 3:02 PM
        To: axis-user@ws.apache.org
        Subject: RE: MalformedURLException with cookieless .NET web
service
        
        

        First of all, Jeff, I like your name.  Secondly, that was a typo
on my part (that's what I get for not cutting-and-pasting).  The URL
looks ok in the Locator.

        - Geoff

         

        
  _____  


        From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, October 18, 2007 1:47 PM
        To: axis-user@ws.apache.org
        Subject: RE: MalformedURLException with cookieless .NET web
service

         

        Geoff,

        I think I see a "//" instead of a "/" after localhost.

        That is not allowed and may force the protocol to be stripped
off?

        -jeff

         

        
  _____  


        From: WALKER-GEOFF [mailto:[EMAIL PROTECTED] 
        Sent: Thursday, October 18, 2007 1:35 PM
        To: axis-user@ws.apache.org
        Subject: RE: MalformedURLException with cookieless .NET web
service

                Hi,

                I'm sorry to double-post, but I've had no responses and
I'm really under the gun.  Does anybody have any ideas about how to get
rid of this exception?  Is this some kind of a configuration issue?

                Thanks,

                Geoff

                 

                
  _____  


                From: WALKER-GEOFF 
                Sent: Wednesday, October 17, 2007 10:15 AM
                To: 'axis-user@ws.apache.org'
                Subject: MalformedURLException with cookieless .NET web
service

                 

                Hi,

                I have had years of experience as a Java developer, but
I am relatively new to setting up web services/clients.  I am trying to
consume a cookieless .NET web service with WSDL2Java generated classes,
and when my stub call invokes a web service method, I get the following
exception:

                 

                java.net.MalformedURLException: no protocol:
/MyWebService/(S(ieyrnf55xs45pd55yi0mjd55))/Service1.asmx

                 

                All of the strings in the generated "Locator" class used
to set the endpoint URL correctly include the fully qualified path
(http://localhost//MyWebService/Service1.asmx
<http://localhost/MyWebService/Service1.asmx> ).

                 

                As you can probably guess from the useless default
names, the web service is also mine, and when I change the web.config
sessionState properties to use cookies (which I'd rather not do), I
don't get the exception.  I will also add that I find dealing with
sessions in .NET a thorough pain!

                 

                So, why is Axis trying to create a URL with the
sessionID-stamped path sans protocol/server?

                 

                Thanks in advance for your help.

                - Geoff

                 

                 

                 

Reply via email to