Title: Found unexpected elements error Post by: Mark W. on January 23, 2014, 08:47:19 am Good day,
I'm having a problem testing a web service. I have some optional elements; when I leave these empty, the test works; however when I include text in these fields, I get the following error:-- Quote fglrun test_client.42r Here is the code for my test client:---1 Sequence 'GR_CompletionRequest': found unexpected elements Quote import com The elements causing the problem are del_reason1 and del_reason2, char (20) and char (30) respectively.database system globals "WS_Test_GR_Completion.inc" main define p_bill_of_lading like bol_hdr.bill_of_lading define p_container_no like bol_line.cont_no define p_pack_list_id like pack_list_hdr.pack_list_id define p_order_no like pack_list_line.order_no define p_payment_ref_no like bol_hdr.payment_ref_no define p_sap_key string define soapStatus integer define p_del_reason1 like bol_hdr.del_reason1 define p_del_reason2 like bol_hdr.del_reason2 define p_del_code smallint define p_error_text string define p_error_code smallint define p_text1 string let p_bill_of_lading = "PXMCPTC0730123" let p_container_no = "" let p_payment_ref_no = "" let p_sap_key = "D" let p_del_reason1 = "test" let p_del_reason2 = "test" let p_del_code = 2 call GR_completion (p_bill_of_lading, p_container_no, p_pack_list_id, p_order_no, p_payment_ref_no, p_sap_key, p_del_reason1, p_del_reason2, p_del_code) returning soapStatus, p_error_text, p_error_code, p_text1 if soapStatus = 0 then display p_error_text display p_error_code display p_text1 else display soapStatus display wsError.description end if end main Any assistance will be greatly appreciated. Title: Re: Found unexpected elements error Post by: Sisavanh S. on January 23, 2014, 02:47:16 pm Hi,
Please, contact your local support center for this kind of issue. Provide them with: - WSDEBUG log (FGLWSDEBUG=3) - your WSDL - a sample program that replicates your issue. It might have something to do with XMLOptional and the way GWS manages it. Best regards, |