axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "heplists" <>
Subject Re: TRANS_URL? What is it used for......BUG?
Date Fri, 12 Oct 2001 17:04:49 GMT
After sending the message, I went back and saw that the only thing
I am doing different was setting the transport to a new HTTPTransport()
After creating the service client with a particular endpoint.  Therefore the
endpoint was not being set in the new HTTPTransport() object.

Sorry for the confusion.

  ----- Original Message ----- 
  From: Glen Daniels 
  To: '' 
  Sent: Friday, October 12, 2001 10:24 AM
  Subject: RE: TRANS_URL? What is it used for......BUG?

  If you look at the code in org.apache.axis.client.Transport.setupMessageContext(), you'll
see that the Transport class has a url field which, if non-null, gets put in the MessageContext
as the TRANS_URL property before the message gets dropped down into the engine (in ServiceClient).
 Each ServiceClient is associated with a Transport object, and so the URL in there should
be getting set to the endpoint URL of the service you're calling.

  Maybe you could send us your code and we could see what's getting confused.

    -----Original Message-----
    From: heplists []
    Sent: Wednesday, October 10, 2001 11:33 AM
    Subject: TRANS_URL? What is it used for......BUG?

    I doing exactly what the examples say in the book for an RPC
    type message.  The only thing I have added is a HTTPAction
    param using client.set().

    I then call:

    invoke ( nameSpace, methodName, RPCParams[] );

    When doing some debuging....I keep getting a NullPointException
    with regards to the msgContext.TRANS_URL?

    My DEBUG Output:

    msgContext.TransURL = transport.url
    HTTPSender(100)--AXIS: targetURL = null

    The exception I keep getting:  What is the TRANS_URL param used for? java.lang.NullPointerException
            at org.apache.axis.transport.http.HTTPSender.invoke(

            at org.apache.axis.SimpleTargetedChain.invoke(
            at org.apache.axis.client.AxisClient.invoke(
            at org.apache.axis.client.ServiceClient.invoke(
            at org.apache.axis.client.ServiceClient.invoke(
            at org.apache.axis.client.ServiceClient.invoke(
            at com.thedig.test.soap.WebService.soapRPCCall(
            at com.thedig.test.soap.WebService.soapRPCCall(

View raw message