axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1472) WSDLUtils.getAddressFromPort does not follow imports
Date Thu, 22 Jul 2004 21:14:18 GMT
The following comment has been added to this issue:

     Author: Aaron Hamid
    Created: Thu, 22 Jul 2004 2:12 PM
       Body:
More info: Printing out the Port object displays (among all the other output), this bit:

UnknownExtensibilityElement ({http://schemas.xmlsoap.org/wsdl/}import):
required=null
element=<wsdl:import namespace="urn:SomeService" location="http://somehost/host.wsdl" />

(Obviously I have censored service and host here).

So it doesn't look like the parser actually followed the import.



---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1472?page=comments#action_36827

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1472

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1472
    Summary: WSDLUtils.getAddressFromPort does not follow imports
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.1
             1.2 Alpha
             1.2 Beta

   Assignee: 
   Reporter: Aaron Hamid

    Created: Thu, 22 Jul 2004 2:02 PM
    Updated: Thu, 22 Jul 2004 2:12 PM
Environment: tested against axis 1.1 and axis 1.2 (latest release zip)

Description:
I have a port in a standard WSDL defined like:

<wsdl:port binding="impl:SomeServiceSoapBinding" name="SomeService">
  <wsdl:import namespace="urn:SomeService" location="http://somehost/host.wsdl" />
</wsdl:port>

host.wsdl on somehost contains:

<?xml version="1.0" encoding="UTF-8"?>
<wsdlsoap:address location="http://someotherhost:90/axis/services/SomeService"/>

I call setImports(true) on the org.apache.axis.wsdl.gen.Parser object, and call run(), where
doc is the pre-parsed org.w3c.dom.Document of the WSDL file:

parser = new Parser();
parser.setImports(true);
parser.run(null, doc);

I hand this parser to the constructor of Service:

Service service = new Service(parser, aqname);

Now I recieve this error when invoking the service:

"No client transport named 'null' found!"

It appears that the Axis Service class obtains the wsdl Port object, then calls WSDLUtils.getAddressFromPort(port).
 This method returns null.

I would expect the setImports(true) flag to indicate to the Parser to import any referenced
documents and for the getAddressFromPort() method to find the correct address.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message