WADL: complex type from external xsd

I need to test the authentication procedure using the wadl file below:

<application xmlns="http://research.sun.com/wadl/2006/10" 
         xmlns:sis="http://sis.thecompany.com/" >
<grammars>
    <include href="http://localhost/wadl/sis.xsd"/>
</grammars>
<resources base="http://192.168.10.139">
    <resource path="/user/sign_in">
        <method name="POST" id="Authentication">
            <request>
                <param name="user" type="sis:user" required="true"/>
                <representation mediaType="application/xml" element="sis:user"/>
            </request>
            <response status="201">
                <representation mediaType="application/xml"/>
                <fault status="401" />
            </response>
        </method>
    </resource>
</resources>

After importing this file into soapUI Pro, I did not receive any action by clicking "Request". The reason is because soapUI Pro does not see the "sis: user" element, since it is present in xsdand, and thought it was just one element of type undefined. Can you recommend the wadl file?

The following is the sis.xsd schema:

<?xml version="1.0" encoding="utf-8"?> <xs:schema id="SIS" targetNamespace="http://sis.thecompany.com/" elementFormDefault="qualified" xmlns="http://sis.thecompany.com/" xmlns:mstns="http://sis.thecompany.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"> <xs:element name="application"> <xs:complexType> <xs:all> <xs:element name="user" minOccurs="0"> <xs:xs:complexType> <xs:all minOccurs="1"> <xs:element name="login" type="xs:string" /> <xs:element name="password" type="xs:string" /> </xs:all> </xs:complexType> </xs:element> </xs:all> </xs:complexType> </xs:element> </xs:schema>

And the next question. If soapUI Pro corrects the parse complexType user element from xsd - POST data from soapUI Pro will be as follows:

<sis:user><sis:login>admin</sis:login><sis:password>admin!</sis:password></sis:user>

But this will be rejected by the server due to the additional prefix 'sis:'. Server supports only the following format

<user><login>admin</login><password>admin!</password></user>

Please advice.

+3
1

, , - WADL. HTTP XML- , , XML POST. .

WADL xsd, , , , . , REST. SOAP, , .

0

Source: https://habr.com/ru/post/1780317/


All Articles