I want to send an invoice in xml format to a client URL using pub.clent.http.
In SAP Business Connector I have successfully mapped an invoice idoc to to xmldata using the service recordToDocument. This data includes the correct header and a <!DOCTYPE> element and it seems to be correct because I can open and browse it with Internet Explorer without errors.
My attempts to successfully send the data have failed because I do not fully understand how the pub.client:http service should be populated.
I wonder if anyone could save me a lot of time of trial and error by explaining how it should be done.
The ideal would be an example of some working coding.
Gunnasekkhaar, thanks for your reply, which is much appreciated.
Our version of SAP Business Connector (4.7) does not have the built in service documentToXmlString. Is there any other way to convert my xmldata to the required string or is there somewhere I can obtain the documentToXmlString service.
I agree with your comment “this is how we learn” but as a newcomer to this software I have already climbed a steep learning curve converting a SAP idoc invoice to the required xml structure and am now under pressure to get this working.
Well, actually it was called “recordToDocument” in those times…
Which was a bit “ill-named”, because if “documentToRecord” transforms a “node” object into a “record”, then one would assume, that “recordToDocument” would transform a “record” into a “node” object. But it didn’t, it transforms the record right into a string…
This is the wrong forum. Please look at this one instead: “wMUsers → webMethods Adapters → Application Adapters”. There is a lot of stuff regarding the SAP Adapter and using RFC.
I too need help with HTTP Post.
In my case , I need to get xml data from Siebel through HTTP Post to webMethods.
Can some one give an idea on how to implement this. Haven’t worked with HTTP in webMethods before.
IMO:Your seibel application can do HTTP post invoking a webMethods IS service along with setting Content-Type=“text/xml” and login user credentials for http post to make work and the IS service input should be a node(object).
Hi,
I encountred a simple-like issu to process an xml retunred by a ws request. I did as following:
pub:client:http
bytestostring
stringtonode
xmlnodetodocument
I’ve tried all parameters to get rid off theses white spaces within the xml but in vain
Hi and thanks for your reply,
Yes, for example, if in the xml, I have:
data
data
The returned values fot tag1, will be:…(white space for tab)data
Allmost of values are preceeded with (tab) which avoid any insert in tables (data type:null)
Try using replace service to remove line feeds (searchString - setValue and hit enter and close/save the pop up) and this should take care of LF’s removed from the xmldata string: