Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Testing of WSDL file(web services) created

Former Member
0 Kudos

Hi all,

I have created a WSDL file for a Funtion Module ZPROSPECT following the steps in the given link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0d0a250-ccd1-2c10-9e9f-b9d5cf259....

Till the step of saving this file on desktop ,but i have no idea of how to test it or what is needed to test it i am working in SAP 7.0.

Please help me with this

Regards,

Mithun.

Edited by: saimithun on Jan 7, 2011 5:39 AM

1 ACCEPTED SOLUTION

Former Member

resolved

14 REPLIES 14

gill367
Active Contributor
0 Kudos

After saving the WSDL file in the system. You can use it in form builder to create a form.

For that you need Adobe Live Cycle designer installed on your system.

In side that you can create a new form using the web dervice you created and then use this form in web dynpro application

to get the output.

Thanks

Sarbjeet Singh

Former Member
0 Kudos

Hi Sabarjeet ,

Thank you for the solution , i have got another problem i need to create web service for Funtion Module BAPI_BUPA_SEARCH but after i complete it shows the error message object not available.

Could you pleade help me with this too.

Regards,

Mithun

gill367
Active Contributor
0 Kudos

at what point it is giving you the error.

Thanks

SARBJEET SINGH

" (not sabarjeet)

Former Member
0 Kudos

After creation is completed in the wizard , it shows the message "There is no object in this name".

gill367
Active Contributor
0 Kudos

Hi

For the same BAPI i tried creatin and havenot faced any issue.

can you please try to create it once again and tell me values you are giving in all the steps.

Thanks

Sarb

Former Member
0 Kudos

Hi Sarb,

In thewizard i gave the following inputs

Object Type:

Service Defination- Z_WS_ BAPI_BUPA_SEARCH

EndpointType-Funtion Module

Choose Endpoint:

Funtion Module : BAPI_BUPA_SEARCH

ticked on the Mapping der Narmen

Entering packeage as local

And then Complete.

Thanks and Regards,

Mithun.

gill367
Active Contributor
0 Kudos

try giving some other name for service name instead of Z_WS_ BAPI_BUPA_SEARCH like Ztest_ws etc.

I am also facing the error when giving this name. i dont know why.

thanks

sarbjeet singh

Former Member
0 Kudos

Thanks Sarb, changing the name resolved it.

But again only for ZBAPI_BUPA_SEARCH it is working .For ZWS* or ZTEST* it is not creating.

Regards,

Mithun.

Former Member
0 Kudos

HI,

I have created Web service for the 'Function Module'.

I have followed below mentioned steps:

  1. Created FM and Web service in SE37,

  2. Collected WSDL file from WSADMIN Transaction (here we are using SAP-ECC-5.0),

  3. Imported WSDL file into SOAP UI.

Tested WSDL file in SOAP UI its throwing below mentioned error

Output of SOAP UI:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

   <soap-env:Body>

      <soap-env:Fault>

         <faultcode>soap-env:Client</faultcode>

         <faultstring xml:lang="en">Serialisation failed</faultstring>

         <detail>

            <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">

               <MainName>/1BCDWB/WSS0130618090853069000</MainName>

               <ProgName>/1BCDWB/WSS0130618090853069000</ProgName>

               <Line>8</Line>

               <Valid>X</Valid>

               <ReferenceFault>

                  <DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>

                  <RefName>INVOICE_ID</RefName>

               </ReferenceFault>

               <Caller>

                  <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>

                  <Method>IF_SXML_PART~DECODE</Method>

                  <Positions>1</Positions>

               </Caller>

            </n0:SimpleTransformationFault>

         </detail>

      </soap-env:Fault>

   </soap-env:Body>

</soap-env:Envelope>

PS: Earlier the Same Function module with the same import and export structure( after generating WSDL ) was working fine in SOAP UI. However, we couldn't sort out exact issue, that is throwing in SOAP UI now because we just changed the logic which will not effect the structure in SOAP UI exact the output.


Please find the attachment of SOAP UI error details with screen shot and

Kindly help me on this.

Thanks & Regards,

Akshath.L.T

former_member206441
Contributor
0 Kudos

Hi

Usuaaly we will be testing the webservices using Java Stack only.

To test the web service alone go through this [document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/92d80512-0a01-0010-32a3-cd3735bd9275?quicklink=index&overridelayout=true] and proceed upto step 10.

Regards

Arun.P

Former Member

resolved

0 Kudos

so that name was the issue or something else.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Moderator Message: This thread has nothing to do with Web Dynpro ABAP. Please only post questionst to this forum that are directly related to Web Dynpro ABAP in the future. I am moving this thread to the ABAP General Forum.

0 Kudos

Dear All,

I have created Web service for the 'Function Module'.

I have followed below mentioned steps:

  1. Created FM and Web service in SE37,

  2. Collected WSDL file from WSADMIN Transaction (here we are using SAP-ECC-5.0),

  3. Imported WSDL file into SOAP UI.

Tested WSDL file in SOAP UI its throwing below mentioned error

Output of SOAP UI:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

   <soap-env:Body>

      <soap-env:Fault>

         <faultcode>soap-env:Client</faultcode>

         <faultstring xml:lang="en">Serialisation failed</faultstring>

         <detail>

            <n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates">

               <MainName>/1BCDWB/WSS0130618090853069000</MainName>

               <ProgName>/1BCDWB/WSS0130618090853069000</ProgName>

               <Line>8</Line>

               <Valid>X</Valid>

               <ReferenceFault>

                  <DescriptionText>Error accessing the ref. node 'INVOICE_ID'</DescriptionText>

                  <RefName>INVOICE_ID</RefName>

               </ReferenceFault>

               <Caller>

                  <Class>CL_SRG_RFC_PROXY_CONTEXT</Class>

                  <Method>IF_SXML_PART~DECODE</Method>

                  <Positions>1</Positions>

               </Caller>

            </n0:SimpleTransformationFault>

         </detail>

      </soap-env:Fault>

   </soap-env:Body>

</soap-env:Envelope>

PS: Earlier the Same Function module with the same import and export structure( after generating WSDL ) was working fine in SOAP UI. However, we couldn't sort out exact issue, that is throwing in SOAP UI now because we just changed the logic which will not effect the structure in SOAP UI exact the output.


Please find the attachment of SOAP UI error details with screen shot and

Kindly help me on this.

Thanks & Regards,

Akshath.L.T