It sends as follows:

<s11:Envelope xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'>
  <s11:Body>
    <ns1:GetUsers xmlns:ns1='http://newolo.dise.fi/schema/V1.0/GetUsers'>
      <ns1:FixedPart
xmlns:ns1='http://newolo.dise.fi/schema/V1.0/FixedPart'>
        <ns1:Timestamp
xmlns:ns1='http://newolo.dise.fi/schema/V1.0/FixedPart'>2011-9-19T16:36:7</ns1:Timestamp>
        <ns1:Application
xmlns:ns1='http://newolo.dise.fi/schema/V1.0/FixedPart'>Sample</ns1:Application>
      </ns1:FixedPart>
      <ns1:OrganisationId
xmlns:ns1='http://newolo.dise.fi/schema/V1.0/GetUsers'>Ihme</ns1:OrganisationId>
    </ns1:GetUsers>
  </s11:Body>
</s11:Envelope>

And the returning error is:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Client</faultcode>
      <faultstring>Unmarshalling Error: unexpected element
(uri:"http://newolo.dise.fi/schema/V1.0/FixedPart";, local:"FixedPart").
Expected elements are
<{http://newolo.dise.fi/schema/V1.0/GetUsers}OrganisationId>,<{http://newolo.dise.fi/schema/V1.0/GetUsers}FixedPart>
</faultstring>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

I'll attach the descriptors for FixedPart and GetUsers

Is this a bug in Membrane, CXF or my WSDL? The WSDL should ne OK, I have
good results with similar WSDL:s with other tools earlier.

-- 

You will be awarded a medal for disregarding safety in saving someone.
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
            targetNamespace="http://newolo.dise.fi/schema/V1.0/FixedPart";
            xmlns:fixed="http://newolo.dise.fi/schema/V1.0/FixedPart";
            elementFormDefault="qualified" version="3.0">
    <xsd:complexType name="FixedPartType">
        <xsd:annotation>
            <xsd:documentation>Fixed part is part of all request and response 
messages. They contain information that can be
used to problem solving whenever something
happens. Fixed part is also the place for
customizations for billing etc. if the using
organisation demands such.</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Timestamp" type="xsd:dateTime">
                <xsd:annotation>
                    <xsd:documentation>Timestamp must be set separately for request
and response. Difference on those time stamps
can be used to measure time spent in the service.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Application">
                <xsd:annotation>
                    <xsd:documentation>Application name and version, the origin of the message. 
Useful when solving problems in the service while integrating.</xsd:documentation>
                </xsd:annotation>
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string">
                        <xsd:maxLength value="250"/>
                    </xsd:restriction>
                </xsd:simpleType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
            targetNamespace="http://newolo.dise.fi/schema/V1.0/GetUsers";
            xmlns:tns="http://newolo.dise.fi/schema/V1.0/GetUsers";
            elementFormDefault="qualified" version="3.0"
            xmlns:fixed="http://newolo.dise.fi/schema/V1.0/FixedPart";
            xmlns:exception="http://newolo.dise.fi/schema/V1.0/Exception";
            xmlns:user="http://newolo.dise.fi/schema/V1.0/User";>
    <xsd:import schemaLocation="FixedPart.xsd" namespace="http://newolo.dise.fi/schema/V1.0/FixedPart"/>
    <xsd:import schemaLocation="Exception.xsd" namespace="http://newolo.dise.fi/schema/V1.0/Exception"/>
    <xsd:import schemaLocation="User.xsd" namespace="http://newolo.dise.fi/schema/V1.0/User"/>
    <xsd:element name="GetUsers">
        <xsd:annotation>
            <xsd:documentation>This request returns all users for the given Organisation.</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="FixedPart" type="fixed:FixedPartType">
                </xsd:element>
                <xsd:element name="OrganisationId">
                    <xsd:annotation>
                        <xsd:documentation>Name/Identifier for the Organisation.</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                            <xsd:maxLength value="128"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="GetUsersResponse">
        <xsd:annotation>
            <xsd:documentation>This response returns all Users for the given Organisation.
            </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="FixedPart" type="fixed:FixedPartType">
                </xsd:element>
                <xsd:element name="User" type="user:UserType" nillable="true" maxOccurs="unbounded" minOccurs="0">
                </xsd:element>
                <xsd:element name="Exception" type="exception:ExceptionType" nillable="true" maxOccurs="unbounded" minOccurs="0">
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to