Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected wrapper element #7

Open
moonandroid opened this issue Oct 22, 2016 · 2 comments
Open

Unexpected wrapper element #7

moonandroid opened this issue Oct 22, 2016 · 2 comments

Comments

@moonandroid
Copy link

moonandroid commented Oct 22, 2016

I'm soap for billing api.
WSDL URL : http://94.206.70.106:8181/cxf/services/UnifiedPartner?wsdl
My request is :

<?xml version="1.0" encoding="UTF-8"?>
<v:Envelope xmlns:v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <v:Header />
   <v:Body>
      <purchaseConsumeProduct xmlns="https://94.206.70.106:8181/">
       <userId>97XXXXXXX</userId>
         <serviceId>S-KXXXXX</serviceId>
         <premiumResourceType>MP-xxx-xx-xxxx-Sub-B2-D-xx</premiumResourceType>
         <productId>Daily MAP Test Sub V2 IN</productId>
         <purchaseMetas>
            <key>du:assetDescription</key>    
            <value>Subscription</value>
         </purchaseMetas>
         <!--Zero or more repetitions:-->
         <billingMetas>
            <key>du:assetID</key>
            <value>-</value>
         </billingMetas>
           <billingMetas>
            <key>du:contentType</key>
            <value>mobileApp</value>
         </billingMetas>
         <billingMetas>
            <key>du:channel</key>
            <value>COMMERCE_API</value>
         </billingMetas>
         <!--Zero or more repetitions:-->
         <usageMetas>
            <key>du:externalid</key>
            <value>S-XXXXXX</value>
         </usageMetas>
      </purchaseConsumeProduct>
   </v:Body>
</v:Envelope>

But they need like below

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.sdp.ericsson.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:purchaseConsumeProduct>//Method name
         <userId>97XXXXXXX</userId>
         <serviceId>S-KXXXXX</serviceId>
         <premiumResourceType>MP-xxx-xx-xxxx-Sub-B2-D-xx</premiumResourceType>
         <productId>Daily MAP Test Sub V2 IN</productId>
         <purchaseMetas>
            <key>du:assetDescription</key>    
            <value>Subscription</value>
         </purchaseMetas>
         <!--Zero or more repetitions:-->
         <billingMetas>
            <key>du:assetID</key>
            <value>-</value>
         </billingMetas>
           <billingMetas>
            <key>du:contentType</key>
            <value>mobileApp</value>
         </billingMetas>
         <billingMetas>
            <key>du:channel</key>
            <value>COMMERCE_API</value>
         </billingMetas>
         <!--Zero or more repetitions:-->
         <usageMetas>
            <key>du:externalid</key>
            <value>S-XXXXXX</value>
         </usageMetas>
      </ws:purchaseConsumeProduct>
   </soapenv:Body>
</soapenv:Envelope>

How i can achieve above request with Ksoap.I have tried lots of way but not got any success.
Please help me here.

@1999chato
Copy link

Vq

@1999chato
Copy link

Va

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants