Title: Message
It looks like the port name should be LimaIFPort in namespace urn:Foo, rather than LimaIF in no namespace.
 
HTH,
Gary
-----Original Message-----
From: Brian Shields [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 8:07 AM
To: [EMAIL PROTECTED]
Subject: missing port information

Hi all,
I am populating an org.apache.axis.client.Call object in order to access a JWSDP deployed web service. The wsdl file or the service i am trying to call is:

<?xml version="1.0" encoding="UTF-8" ?>

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:Foo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap< FONT color=#0000ff>="http://schemas.xmlsoap.org/wsdl/soap/" name="LimaR" targetNamespace=" urn:Foo">

  <types />

<message name="LimaIF_acceptOrder">

  <part name="String_1" type="xsd:string" />

  </message>

  <message name="LimaIF_acceptOrderResponse" />

<portType name="LimaIF">

<operation name="acceptOrder" parameterOrder="String_1">

  <input message="tns:LimaIF_acceptOrder" />

  <output message="tns:LimaIF_acceptOrderResponse" />

</operation>

  </portType>

<binding name="LimaIFBinding" type="tns:LimaIF">

<operation name="acceptOrder">

<input>

<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo" />

</input>

<output>

  <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo" />< /SPAN>

</output>

<soap:operation soapAction="" />

</operation>

</binding>

<service name="LimaR">

<port name="LimaIFPort" binding="tns:LimaIFBinding">

<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://laptop-11:8080/LimaR/interface" />

</port>

</service>

</definitions>
 
my code to call this service looks like this:
 
org.apache.axis.client.Service service = new org.apache.axis.client.Service();
            org.apache.axis.client.Call call = (org.apache.axis.client.Call)service.createCall();
            call.setTargetEndpointAddress(new URL("http://laptop-11:8080/LimaW/interface"));
            call.setOperationName(new javax.xml.namespace.QName("http://soapinterop.org", "acceptOrder"));
            call.setPortName(new javax.xml.namespace.QName("LimaIF"));
            call.setSOAPActionURI("urn:Foo");
            String ret = (String)call.invoke(new Object[]{"hello"});
            System.out.println(ret);
 
 
Am i leaving out anything. I keep getting the "missing port information" error. Apologies if this is a simple question, i am new to axis.
Thanks in advance,
Brian.
 


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

Reply via email to