You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by robert rowntree <ro...@mindspring.com> on 2003/06/25 02:59:32 UTC

re: Problem with Can't Find Prefix - jaxrpc attachments

modify the namespace definitions in your "wsdd"
  ( include the define for "ns1" prefix )
and you should get the "wsdl" that you see below for the "attachments"
sample...

* * * * * WSDD definitions with modifications

deployment changes to sample : namespace problems
---------
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
  xmlns:urn="http://attachment.org/types"
  xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
  xmlns:ns1="http://xml.apache.org/xml-soap"   >
  <service name="urn:EchoAttachmentsService" provider="java:RPC" >
    <parameter name="className"
value="samples.attachments.EchoAttachmentsService"/>
    <parameter name="allowedMethods" value="echo echoDir"/>
    <operation name="echo" returnQName="returnqname"
returnType="ns1:DataHandler" >
        <parameter name="dh" type="ns1:DataHandler"/>
      </operation>

 go to this link with your server up and with the attachments sample
 deployed...

http://localhost:8080/axis/services/urn:EchoAttachmentsService?wsdl

* * * * * *  The WSDL in the response * * * * *

  <?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions
targetNamespace="http://localhost:8080/axis/services/urn:EchoAttachmentsServ
ice" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
xmlns:intf="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <schema
targetNamespace="http://localhost:8080/axis/services/urn:EchoAttachmentsServ
ice" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ArrayOf_apachesoap_DataHandler">
- <complexContent>
- <restriction base="soapenc:Array">
  <attribute ref="soapenc:arrayType"
wsdl:arrayType="apachesoap:DataHandler[]" />
  </restriction>
  </complexContent>
  </complexType>
  </schema>
  </wsdl:types>
- <wsdl:message name="echoRequest">
  <wsdl:part name="dh" type="apachesoap:DataHandler" />
  </wsdl:message>
- <wsdl:message name="echoDirRequest">
  <wsdl:part name="attachments" type="impl:ArrayOf_apachesoap_DataHandler"
/>
  </wsdl:message>
- <wsdl:message name="echoDirResponse">
  <wsdl:part name="echoDirReturn" type="impl:ArrayOf_apachesoap_DataHandler"
/>
  </wsdl:message>
- <wsdl:message name="echoResponse">
  <wsdl:part name="returnqname" type="apachesoap:DataHandler" />
  </wsdl:message>
- <wsdl:portType name="EchoAttachmentsService">
- <wsdl:operation name="echo" parameterOrder="dh">
  <wsdl:input message="impl:echoRequest" name="echoRequest" />
  <wsdl:output message="impl:echoResponse" name="echoResponse" />
  </wsdl:operation>
- <wsdl:operation name="echoDir" parameterOrder="attachments">
  <wsdl:input message="impl:echoDirRequest" name="echoDirRequest" />
  <wsdl:output message="impl:echoDirResponse" name="echoDirResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="urn:EchoAttachmentsServiceSoapBinding"
type="impl:EchoAttachmentsService">
  <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="echo">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="echoRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
use="encoded" />
  </wsdl:input>
- <wsdl:output name="echoResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
use="encoded" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="echoDir">
  <wsdlsoap:operation soapAction="" />
- <wsdl:input name="echoDirRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
use="encoded" />
  </wsdl:input>
- <wsdl:output name="echoDirResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/urn:EchoAttachmentsService"
use="encoded" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="EchoAttachmentsServiceService">
- <wsdl:port binding="impl:urn:EchoAttachmentsServiceSoapBinding"
name="urn:EchoAttachmentsService">
  <wsdlsoap:address
location="http://localhost:8080/axis/services/urn:EchoAttachmentsService" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.490 / Virus Database: 289 - Release Date: 6/16/2003