Skip to Content
avatar image
Former Member

creating data model using wsdl

How to create data model  and map by seeing wsdl file in integration gateway eclispe plugin

Tags edited by: Jitendra Kansal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Dec 30, 2014 at 10:17 AM

    Former Member

    Try it with a new OData service implementation project:

    1. Create an entity type with "MaterialNo" as primary key

    2. Bind it with Data source "SOAP service" and QUERY operation

    3. Response mapping

    4. Request mapping> custom code

    importPackage(com.sap.gateway.ip.core.customdev.logging);

    importPackage(com.sap.gateway.ip.core.customdev.util);

    importPackage(org.apache.olingo.odata2.api.uri);

    importPackage(java.util);

    importPackage(com.sap.gateway.core.ip.component.commons);

    importPackage(com.sap.gateway.ip.core.customdev.api);

       var response=new LinkedHashMap();

       message.setHeader("Authorization", "enter base64format of username and password");

       map = new LinkedHashMap();

       map.put("SalesOrg", "IND1");

    partneHashMap = new LinkedHashMap();

       partneHashMap.put("ItMate", map);

       message.setBody(partneHashMap);

    Note: You can convert username and password credentials info into Base64 using REST Client>header.

    Regards,

    JK

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you Jitendra,

      We got the Output by changing our wsdl policy from ws_policy to standard.

      Used processRequestXML(message) for request, from custom js.

      All your's support helped me lot, Thank you once again

  • Dec 23, 2014 at 07:16 AM

    Hi Praveen,

    Your scenario is quite similar to what Anil has explained in his documentation guide (Writing Custom Logic using Java Script in SMP Integration Gateway) . Did you try selecting QUERY operation and done with REQUEST MAPPING in the generated script file? You can try with hard-coding the encoded value of user/pwd and add the salesOrg value.

    Regards,

    JK

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Jitendra Kansal

      hi jItendra,

      This is my javascript

           importPackage(java.util);

         importPackage(org.apache.olingo.odata2.api.uri);

         importPackage(org.apache.olingo.odata2.api.edm);

         importPackage(com.sap.gateway.ip.core.customdev.logging);

         importPackage(com.sap.gateway.ip.core.customdev.util);

         importPackage(org.apache.olingo.odata2.api.uri);

        

         var response=new LinkedHashMap();

         message.setHeader("Authorization", "Basic user:pass");

         map = new LinkedHashMap();

         map.put("SalesOrg", "IND1");

        

         partneHashMap = new LinkedHashMap();

         partneHashMap.put("ItMate", map);

         message.setBody(partneHashMap);

      I am getting Error

      <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

      <code/>

      <message xml:lang="en">Could not send Message.</message>

      </error>

  • Dec 22, 2014 at 01:42 PM

    you should check Writing Custom Logic using Java Script in SMP Integration Gateway also look at COMMENTS section.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Praveen,

      In your Odata model I can see that you have defined SalesOrg as the primary key but in the SOAP response from SOAPUI I can see that SalesOrg is not a primary key since the value of SalesOrg(IND1) been repeated in each item. I doubt that's resulting in only one record in the response of Odata request. You should define right primary and try again.

      Regards, Midhun

      SAP Customer Experience Group - CEG

  • Dec 22, 2014 at 05:21 AM

    Hi Praveen,

    You are referring to Odata model right? You can check this

    How to connect SOAP WebServices with Integration Gateway in SMP3

    Regards,

    JK

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 22, 2014 at 06:56 AM

    AND THE WSDL FILE IS ATTACHED IN TXT FORMAT


    WSDL.txt.zip (1.3 kB)
    ONE.png (188.4 kB)
    TWO.png (189.8 kB)
    TWO.png (189.8 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Jitendra Kansal

      When we use SOAP UI  to retrieve data we have to supply user name and password, my question is where to configure in integration gateway

  • Dec 30, 2014 at 04:35 PM

    Former Member

    Great. Please close this thread since your query has been resolved.

    How to close a discussion and why

    Add comment
    10|10000 characters needed characters exceeded