Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: How to receiver binary pdf attachment from proxy to PI

$
0
0

Hi Stefan,

 

Thanks for responding.

 

We have handled this in ECC.

 

Proxy will generate pdf & convert it into binary text & returns to PI in single string. Once the binary text is returned to webservice, the receiving application has a capability of converting text to pdf.

 

But I'm still stuck.

 

My client sent me WSDL, which was composite & was referenced to xsd1 which was referenced to xsd2 which had the actual request & response fields. (wsdl -> xsd1 & xsd1 -> xsd2).

 

So I directly used xsd2 in PI service interface as request & response.

 

I triggered the test from XML spy to Wsdl url I generated, then a proxy was called, proxy generated pdf file & converted it into binary text & sent to PI in 1 field as a string which was successfully delivered & I received below response. But my question is where did the file end up, if its on PI generated webservice, I'm wondering how it can integrate with the clients tool of binary to pdf conversion. This interface is already in prod & we are replacing SAP so client is expecting a pdf file.I believe I have to provide this URL & ask the client to point their conversion agent to pick the binary text from PI generated URL or was my approach of generating WSDL without the original references mess up. I'm failing to understand the communication link here. Sorry I haven't worked on sync scenario earlier. Could you please guide me.

 

Response:

 

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

  <SOAP:Header/>

  <SOAP:Body xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <ns1:InvoiceInfo xmlns:ns1="http://Clients namespace">

  <DocumentContainer>

  <File>255044462D312E330A25AAABACAD0A342030206F626A0A3C3C202F54797065202F496E666F0A2F50726F647563657220286E756C6C29203E3E0A656E646F626A0A352030206F626A0A3C3C202F4C656E6774682033323030202F46696C746572202F466C6174654465636F6465200A203E3E0A73747265616D0A789CC55BC98</File>

  </DocumentContainer>

  </ns1:InvoiceInfo>

  </SOAP:Body>

</SOAP:Envelope>

 

Also when I access the endpoint, it gives below message, I'm wondering if client can access PI's webservice.

 

Message Servlet is in Status OK

Status information:

Servlet com.sap.aii.adapter.soap.web.MessageServlet (Version $Id: //tc/xpi.adapters/NW731EXT_15_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#1 $) bound to /MessageServlet

Classname ModuleProcessor: null

Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean

Lookupname for remoteModuleProcessorLookupName: null

ModuleProcessorClass not instantiated

ModuleProcessorLocal is Instance of com.sun.proxy.$Proxy20725

ModuleProcessorRemote not instantiated


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>