Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex type in params #1

Open
a4tunado opened this issue Aug 1, 2011 · 0 comments
Open

Complex type in params #1

a4tunado opened this issue Aug 1, 2011 · 0 comments

Comments

@a4tunado
Copy link
Owner

a4tunado commented Aug 1, 2011

I’m testing the wsdl2ksoap tool and it fail me with the attached wsdl.

I think the problem is in the ServiceSoap class method InsertPerson. The generated code is the following:

public InsertPersonResponse InsertPerson(InsertPerson params) throws Exception {
    SoapSerializationEnvelope envelope = newEnvelope();
    envelope.setOutputSoapObject(params.GetSoapParams());
    new InsertPersonResponse().register(envelope);
    return (InsertPersonResponse)Transport(params.GetSoapAction(), envelope);
}

In this method is called the InsertPersonResponse().register(envelope) but don´t call the Person.register(envelope). If i add this line it works fine.

  <s:element name="InsertPerson">
    <s:complexType>
      <s:sequence>
        <s:element minOccurs="0" maxOccurs="1" name="person" type="tns:Person"/>
      </s:sequence>
    </s:complexType>

  </s:element>
  <s:complexType name="Person">
    <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="FirstName" type="s:string"/>
      <s:element minOccurs="0" maxOccurs="1" name="LastName" type="s:string"/>
    </s:sequence>
  </s:complexType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant