Hi, I need help with deploy.wsdd & ...?

I have an existing wsdl that returns this soap message:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
    <getVersionResponse xmlns="urn:discovery.services.netcentric.sec">
      <getVersionReturn>Version 1.0 from discovery in
tomcat</getVersionReturn>
    </getVersionResponse>
  </soapenv:Body>
</soapenv:Envelope>

The schemas inside this wsdl were updated & so I need to make a new version
of the web service.

After I generate java code using axis 1.4 and edit the deploy.wsdd by hand,
the best I've been able to come up with is

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
    <getVersionReturn
xmlns="urn:discovery.services.netcentric.sec">darsFederation
discovery 1.4.1</getVersionReturn>
  </soapenv:Body>
</soapenv:Envelope>

There are two things wrong:

1) What happened to the <getVersionResponse ...> tags?
2) xmlns="urn:discovery.services.netcentric.sed" should be on the missing
tag & not on the <getVersionReturn>

I'm using document/literal/wrapped (wsdl is at the bottom).

Here are some entries from edited deploy.wsdd:

<service name="discovery" provider="java:RPC" style="document"
use="literal">
  <operation name="getVersion"
    qname="ns:getVersion"
    xmlns:ns="urn:discovery.services.netcentric.sec"
    returnQName="rtns:getVersionReturn"
    returnType="tns:getVersionResponse"
    xmlns:rtns="urn:discovery.services.netcentric.sec" >
  </operation>
   ...

I'm really confused by the missing tags because it seems clear from the wsdl

(below) that they should be there.
Thanks for any & all help! I know that I'm just doing something wrong.


-----------------WSDL -----------------------

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
 xmlns:impl="urn:discovery.services.netcentric.sec"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 targetNamespace="urn:discovery.services.netcentric.sec"
 xmlns="http://schemas.xmlsoap.org/wsdl/";>
 <wsdl:types>
 ...
 </wsdl:types>
 <wsdl:message name="getVersionRequest">
 </wsdl:message>
 <wsdl:message name="getVersionResponse">
  <wsdl:part name="getVersionReturn" type="xsd:string"/>
 </wsdl:message>
 <wsdl:portType name="Discovery">
  <wsdl:operation name="getVersion">
   <wsdl:input name="getVersionRequest" message="impl:getVersionRequest"/>
   <wsdl:output name="getVersionResponse"
message="impl:getVersionResponse"/>
  </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="discoverySoapBinding" type="impl:Discovery">
  <wsdlsoap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
  <wsdl:operation name="getVersion">
   <wsdlsoap:operation/>
   <wsdl:input name="getVersionRequest">
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output name="getVersionResponse">
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="DiscoveryService">
  <wsdl:port name="discovery" binding="impl:discoverySoapBinding">
   <wsdlsoap:address location="
http://localhost:8015/df-1.4.1/services/discovery"/>
  </wsdl:port>
 </wsdl:service>
</wsdl:definitions>

Reply via email to