Hi Folks,

I'm generating clients and servers for 2 services from WSDLs (+ XSDs)
using the Codegen Ant task.

For one WSDL, the generated interfaces and skeletons correctly include
a parameter for an item in the soap:header, but in the second case
they do not.

In both cases classes for the underlying item are created, including
an xyzDocument as should appear in the interface signatures.

The WSDLs follow the same structure and they both validate.

With debug logging turned on during codegen, I have captured the
documents created for input to code generation.

(I have attached the documents to this email... 1.xml is the document
for the skeleton interface on the correct service. 2.xml is the
document for the skeleton interface on the service with the header
item missing).

To me, the documents seem to contain equivalent information describing
the header item, but only the resulting code for one service has the
correct interfaces/skeletons.

I don't see any ERRORs or even WARNings on the log output.



Please can you suggest how I can resolve this?

Many Thanks,
Darren


(P.S. I'm running Java 1.6 on redhat linux and I've got the same
outcome using Axis 1.1.1 and Axis 1.2).
<?xml version="1.0"?>
<interface callbackname="WapPushServiceCallbackHandler" isAsync="0" isSync="1" name="WapPushServiceSkeletonInterface" package="com.mobilecohesion.hydra.appproviders.generated.wspap">
  <method dbsupportname="WapPushServiceWapPushDatabindingSupporter" mep="12" mepURI="http://www.w3.org/2004/08/wsdl/in-out"; name="WapPush" namespace="" soapaction="urn:pap/WapPush" style="document" usdbimpl="false">
    <outputActionMapping Action="urn:pap:WapPushPortType:WapPushResponse"/>
    <faultActionMapping Action="urn:pap:WapPushPortType:WapPush:Fault:HydraError" faultName="HydraError"/>
    <input>
      <param location="body" name="param0" opname="WapPush" shorttype="WapPushRequestElementDocument" type="pappush.WapPushRequestElementDocument" value="null">
        <qname localname="WapPushRequestElement" nsuri="urn:pappush"/>
      </param>
      <param location="header" name="param1" type="pappush.WapPushRequestHeaderElementDocument"/>
    </input>
    <output>
      <param location="body" name="param2" opname="WapPush" shorttype="WapPushResponseElementDocument" type="pappush.WapPushResponseElementDocument">
        <qname localname="WapPushResponseElement" nsuri="urn:pappush"/>
      </param>
    </output>
    <fault>
      <param instantiatableType="pappush.HydraErrorElementDocument" localname="HydraErrorElement" name="HydraErrorException" namespace="urn:pappush" shortName="HydraErrorException"shorttype="HydraErrorElementDocument" type="pappush.HydraErrorElementDocument" value="null"/>
    </fault>
  </method>
  <fault-list>
    <fault instantiatableType="pappush.HydraErrorElementDocument" name="HydraErrorException" shortName="HydraErrorException" type="pappush.HydraErrorElementDocument" value="null"/>
  </fault-list>
</interface>
<?xml version="1.0"?>
<interface callbackname="SmsSendServiceCallbackHandler" isAsync="0" isSync="1" name="SmsSendServiceSkeletonInterface" package="com.mobilecohesion.hydra.appproviders.generated.wssms.send">
  <method dbsupportname="SmsSendServiceSendSmsDatabindingSupporter" mep="12" mepURI="http://www.w3.org/2004/08/wsdl/in-out"; name="SendSms" namespace="" soapaction="urn:sms/SendSms" style="document" usdbimpl="false">
    <outputActionMapping Action="urn:sms:SmsSendServicePortType:SendSmsResponse"/>
    <faultActionMapping Action="urn:sms:SmsSendServicePortType:SendSms:Fault:HydraError" faultName="HydraError"/>
    <input>
      <param location="body" name="param0" opname="SendSms" shorttype="SendSmsRequestElementDocument" type="smssnd.SendSmsRequestElementDocument" value="null">
        <qname localname="SendSmsRequestElement" nsuri="urn:smssnd"/>
      </param>
      <param location="header" name="param1" type="smssnd.SendSmsRequestHeaderElementDocument"/>
    </input>
    <output>
      <param location="body" name="param2" opname="SendSms" shorttype="SendSmsResponseElementDocument" type="smssnd.SendSmsResponseElementDocument">
        <qname localname="SendSmsResponseElement" nsuri="urn:smssnd"/>
      </param>
    </output>
    <fault>
      <param instantiatableType="smssnd.HydraErrorDocument" localname="HydraError" name="HydraErrorException" namespace="urn:smssnd" shortName="HydraErrorException" shorttype="HydraErrorDocument" type="smssnd.HydraErrorDocument" value="null"/>
    </fault>
  </method>
  <fault-list>
    <fault instantiatableType="smssnd.HydraErrorDocument" name="HydraErrorException" shortName="HydraErrorException" type="smssnd.HydraErrorDocument" value="null"/>
  </fault-list>
</interface>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to