Here is the wsdl2java call:
<wsdl2java output="${target.dir}/output" testcase="true" unpackClasses="true" wsdlfilename=" http://ws008:9700/orabpel/default/RetrieveClientDetails/1.0/RetrieveClientDetails?wsdl" />

I've also attached the wsdl...

Cheers,
Dan



On 5/12/06, robert lazarski <[EMAIL PROTECTED]> wrote:
Even though it may be big, could you attach your entire wsdl ?  It also may help us figure out the problem is you show us you params you passed to wsdl2java. One other thing: Is the client request making it to the server, and perhaps returning a reponse the client can't parse? (late here, sorry if I'm not making sense ;-) )

Robert
http://www.braziloutsource.com/


On 5/11/06, Dan Washusen <[EMAIL PROTECTED] > wrote:
Hi All,
I'm getting a weird error and I was hoping someone could tell me what I'm doing wrong because I have no idea what's going on...

I've generated a client using the org.apache.axis2.tool.ant.AntCodegenTask class and filled in the todos in the generated test case, however when I run the test Axis spits out the following error:
    [junit] Testcase: testprocess(org.apache.axis2.RetrieveClientDetailsTest):  Caused an ERROR
    [junit] java.lang.RuntimeException: Unexpected subelement fees
    [junit] java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement fees
    [junit]     at org.apache.axis2.RetrieveClientDetailsStub.fromOM (RetrieveClientDetailsStub.java:345)
    [junit]     at org.apache.axis2.RetrieveClientDetailsStub.process(RetrieveClientDetailsStub.java:114)
    [junit]     at org.apache.axis2.RetrieveClientDetailsTest.testprocess (RetrieveClientDetailsTest.java:24)
    [junit] Caused by: java.lang.RuntimeException: Unexpected subelement fees
    [junit]     at au.com.nxf.www.nxfmessagetypes.ClientDetailsType$Factory.parse(ClientDetailsType.java :579)
    [junit]     at au.com.nxf.www.retrieveclientdetails.RetrieveClientDetailsProcessResponse$Factory.parse(RetrieveClientDetailsProcessResponse.java:149)
    [junit]     at org.apache.axis2.RetrieveClientDetailsStub.fromOM (RetrieveClientDetailsStub.java:337)
    [junit]     ... 17 more

My XSD looks like this (well here's the relevant bit of it):
<xsd:complexType name="ClientDetailsType">
    <xsd:sequence>
      <xsd:element name="partyId" type="xsd:long"/>
      <xsd:element name="externalId" type="xsd:string"/>
      <xsd:element name="description" type="xsd:string" nillable="true"/>
      <xsd:element name="company" type="xsd:string" nillable="true"/>
      <xsd:element name="abnacn" type="xsd:string" nillable="true"/>
      <xsd:element name="cmtAccount1Id" type="xsd:long" nillable="true"/>
      <xsd:element name="cmtAccount2Id" type="xsd:long" nillable="true"/>
      <xsd:element name="contact" type="ContactType" nillable="true" minOccurs="1" maxOccurs="unbounded"/>
      <xsd:element name="address" type="SiteType" nillable="true" minOccurs="1" maxOccurs="unbounded"/>
      <xsd:element name="fees" type="ClientFeesType"/>
      <xsd:element name="lastStatement" type="xsd:date" nillable="true"/>
      <xsd:element name="status" type="status" nillable="true"/>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:complexType name="ClientFeesType">
    <xsd:sequence>
      <xsd:element name="lineFee" type="xsd:decimal" nillable="true"/>
      <xsd:element name="shortFee" type="xsd:decimal" nillable="true"/>
      <xsd:element name="brokerage" type="xsd:decimal" nillable="true"/>
      <xsd:element name="interestRate" type="xsd:decimal" nillable="true"/>
      <xsd:element name="rebate" type="xsd:decimal" nillable="true"/>
    </xsd:sequence>
  </xsd:complexType> 


 And the SOAP envelope looks like this:
<RetrieveClientDetailsProcessResponse>
<client:StatusMsg >
<ns1:Status>0</ns1:Status >
<ns1:StatusDetailedMsg/>
</client:StatusMsg >
<client:ClientDetails>
<ns1:partyId >13</ns1:partyId>
<ns1:externalId >TEST1</ns1:externalId>
<ns1:description >Client 1</ns1:description>
<ns1:company />
<ns1:abnacn/>
<ns1:fees >
<ns1:lineFee>7.5</ns1:lineFee >
<ns1:shortFee>10</ns1:shortFee >
<ns1:brokerage/>
<ns1:interestRate >5.75</ns1:interestRate>
<ns1:rebate />
</ns1:fees>
<ns1:lastStatement />
<ns1:status>ACTIVE</ns1:status >
<ns1:contact primary="Y" >
<ns1:contactId>2529</ns1:contactId >
<ns1:partyId>13</ns1:partyId >
<ns1:title>Lord</ns1:title >
<ns1:given/>
<ns1:surname >Dorman</ns1:surname>
<ns1:phone1 >5555 5555</ns1:phone1>
<ns1:phone2 >5555 5554</ns1:phone2>
<ns1:fax />
<ns1:mobile>9999 9999 99</ ns1:mobile>
<ns1:email>[EMAIL PROTECTED] </ns1:email>
</ns1:contact>
<ns1:address primary="Y" >
<ns1:siteId>1717</ns1:siteId >
<ns1:partyId>13</ns1:partyId >
<ns1:description>asdfasdf</ns1:description >
<ns1:line1/>
<ns1:line2>1 Elizabeth Street</ns1:line2>
<ns1:city>Sydney</ns1:city>
<ns1:state>NSW</ns1:state>
<ns1:postcode>2000</ns1:postcode>
<ns1:country>AU</ns1:country>
</ ns1:address>
</client:ClientDetails>
</RetrieveClientDetailsProcessResponse>

I found a Jira issue that seems to be related but I don't really follow the comments:
http://issues.apache.org/jira/browse/AXIS2-632?page=comments#action_12377038

Any ideas?

Cheers,
Dan
 
p.s. I'm running Axis2 1.0 on a Windows XP machine with JDK 1.4.2_11. 




<?xml version="1.0" encoding="UTF-8"?>
<definitions
     name="RetrieveClientDetails"
     targetNamespace="http://www.nxf.com.au/RetrieveClientDetails";
     xmlns="http://schemas.xmlsoap.org/wsdl/";
     xmlns:tns="http://www.nxf.com.au/RetrieveClientDetails";
     xmlns:ns1="http://www.nxf.com.au/NXFMessageTypes";
     xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/";
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
     xmlns:client="http://www.nxf.com.au/RetrieveClientDetails";
    >
    <types>
        <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.nxf.com.au/RetrieveClientDetails";
             xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:client="http://www.nxf.com.au/RetrieveClientDetails";
             xmlns:ns1="http://www.nxf.com.au/NXFMessageTypes"; xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/";>
            <import namespace="http://www.nxf.com.au/NXFMessageTypes"; schemaLocation="http://devserver01.domaina.local:7777/DataModelDev/NXFMessageTypes.xsd"/>
            <element name="RetrieveClientDetailsProcessRequest">
                <complexType>
                    <sequence>
                        <element name="partyId" type="long"/>
                    </sequence>
                </complexType>
            </element>
            <element name="RetrieveClientDetailsProcessResponse">
                <complexType>
                    <sequence>
                        <element name="StatusMsg" type="ns1:StatusMsgType"/>
                        <element name="ClientDetails" nillable="true" type="ns1:ClientDetailsType"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </types>
    <message name="RetrieveClientDetailsRequestMessage">
        <part name="payload" element="tns:RetrieveClientDetailsProcessRequest"/>
    </message>
    <message name="ExceptionMsg">
        <part name="payload" element="ns1:ExceptionDetailsMsg"/>
    </message>
    <message name="RetrieveClientDetailsResponseMessage">
        <part name="payload" element="tns:RetrieveClientDetailsProcessResponse"/>
    </message>
    <portType name="RetrieveClientDetails">
        <operation name="process">
            <input message="tns:RetrieveClientDetailsRequestMessage"/>
            <output message="tns:RetrieveClientDetailsResponseMessage"/>
        </operation>
    </portType>
    <binding name="RetrieveClientDetailsBinding" type="tns:RetrieveClientDetails">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="process">
            <soap:operation style="document" soapAction="process"/>
            <input>
                <soap:body use="literal"/>
            </input>
            <output>
                <soap:body use="literal"/>
            </output>
        </operation>
    </binding>
    <service name="RetrieveClientDetails">
        <port name="RetrieveClientDetailsPort" binding="tns:RetrieveClientDetailsBinding">
            <soap:address location="http://WS008:9700/orabpel/default/RetrieveClientDetails/1.0"/>
        </port>
    </service>
  <plnk:partnerLinkType name="RetrieveClientDetails">
    <plnk:role name="RetrieveClientDetailsProvider">
      <plnk:portType name="tns:RetrieveClientDetails"/>
    </plnk:role>
  </plnk:partnerLinkType>
</definitions>


Reply via email to