Forum Discussion

mcbootus's avatar
mcbootus
Contributor
14 years ago

Soap Request Element Disappears

Dear Support,

I have a strange problem - I have a web service request (below) which works fine - I save it and close the request. When I re-open the request one of the elements in the request is missing - and hence fails validation. I have repeated the issue 3 times. The line that always disappears is:


<urn:SenderParty/>




Thanks in advance,
Armen


WORKING REQUEST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ec="ec:services:wsdl:DocumentBundle-0.1" xmlns:urn="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:urn1="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<soapenv:Header>
<ec:AuthorisationHeader>
<urn:SenderParty>
<urn1:EndpointID>${PARTY_SENDER}</urn1:EndpointID>
</urn:SenderParty>
<urn:ReceiverParty>
<urn1:EndpointID>${PARTY_RECIEVER}</urn1:EndpointID>
</urn:ReceiverParty>
</ec:AuthorisationHeader>
</soapenv:Header>
<soapenv:Body>
<ec:SubmitDocumentBundleRequest>
<ec:DocumentBundle>
<urn1:ID>${BUNDLE_ID}</urn1:ID>
<urn1:IssueDate>2011-03-25</urn1:IssueDate>
<urn:SenderParty/>
<urn:ReceiverParty/>
<urn:DocumentReference>
<urn1:ID>${DOCUMENT_ID}</urn1:ID>
<urn1:DocumentType>BINARY</urn1:DocumentType>
</urn:DocumentReference>
</ec:DocumentBundle>
</ec:SubmitDocumentBundleRequest>
</soapenv:Body>
</soapenv:Envelope>



AFTER SAVE AND REOPEN THE LINE IS MISSING
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ec="ec:services:wsdl:DocumentBundle-0.1" xmlns:urn="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:urn1="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<soapenv:Header>
<ec:AuthorisationHeader>
<urn:SenderParty>
<urn1:EndpointID>${PARTY_SENDER}</urn1:EndpointID>
</urn:SenderParty>
<urn:ReceiverParty>
<urn1:EndpointID>${PARTY_RECIEVER}</urn1:EndpointID>
</urn:ReceiverParty>
</ec:AuthorisationHeader>
</soapenv:Header>
<soapenv:Body>
<ec:SubmitDocumentBundleRequest>
<ec:DocumentBundle>
<urn1:ID>${BUNDLE_ID}</urn1:ID>
<urn1:IssueDate>2011-03-25</urn1:IssueDate>
MISSING
<urn:ReceiverParty/>
<urn:DocumentReference>
<urn1:ID>${DOCUMENT_ID}</urn1:ID>
<urn1:DocumentType>BINARY</urn1:DocumentType>
</urn:DocumentReference>
</ec:DocumentBundle>
</ec:SubmitDocumentBundleRequest>
</soapenv:Body>
</soapenv:Envelope>
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    Is this element mandatory in the corresponding schema? If not, the form editor will remove it if left empty.

    regards,

    /Ole
    eviware.com
  • Hi Ole,

    Thanks for the reply - I believe it is mandatory.

    The thing is other Soap UI users do not get this issue with the same web service request - could it be a setting on my installation causing this - I am running 3.6 32 bit on Win7 64 bit OS.

    Is there any way I can prevent this from happening regardless of it being mandatory?

    Thanks,
    Armen
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    hmm.. could you attach the WSDL for this so we can debug why it is being removed?

    regards,

    /Ole
    eviware.com
  • Dear Ole,

    Thanks for the reply - I will send the WSDL directly to the support email.

    Best regards,
    Armen
  • Hi
    I can add that we also are facing problem like this.
    Often it happens when we are using the FORM tab.
    It seams that FORM is removing some fileds or move fields around for some services.

    We can't figure out why or when, so it is not reported.

    /Ivan
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Ivan,

    The form editor automatically removes empty elements that are not mandatory in the schema, could this be the reason they are being removed? If not (ie you are sure that they are mandatory in the schema) it would be great if you could provide us with your WSDL/XSD so we can try to reproduce and fix..

    regards!

    /Ole
    SmartBear Sweden
  • mcaboor's avatar
    mcaboor
    Occasional Contributor
    Same here,

    All Elements are data in my case. All the data with space value are not taken in the XML while they appear on the Form.
    My WebServices does not work since that he need to have those data.
  • eviware support wrote:
    Hi Ivan,

    The form editor automatically removes empty elements that are not mandatory in the schema, could this be the reason they are being removed? If not (ie you are sure that they are mandatory in the schema) it would be great if you could provide us with your WSDL/XSD so we can try to reproduce and fix..

    regards!

    /Ole
    SmartBear Sweden


    I will check and if not, I will add more information.
    Regards Ivan