on 10-24-2006 1:30 PM
I'm trying to send a SOAP message from XI via HTTP adapter to an external web services client URL and I get an 'HTTP_TIMEOUT' message.
The trace says 'HTTP-Client: exception during receive: HTTP_COMMUNICATION_FAILURE'.
I can take the message and send it succesfully when I use XMLSPY.
Can anyone suggest what the problem might be in XI?
Hi Ken,
I guess the error could be because of either of the two reasons:
1) The namespace ns1: which is inserted by XI itself.
2) or could be because of the tag <Document ref="ClickToDoc">. try removing all the <Document ref> tags and then try.
To remove the unwanted namespace ns1: just create a XSLT mapping with the following code,
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no"/>
<xsl:template match="/|comment()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute name="{local-name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
I have highlighted the areas of concern.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Request xmlns="http://xoa.xpedite.com/2004/11/xoa">
<ReceiverKey>http://xoatweb1.xpedite.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID>uk/mrpan/pc</RequesterID>
<Password>welcome</Password>
</XDDSAuth>
</Authentication>
</Request>
</Header>
<soap:Body>
<<b>ns1:</b>JobSubmitRequest xmlns:<b>ns1</b>="http://xoa.xpedite.com/2004/11/xoa">
<DocumentSet>
<b><Document ref="HTMLDoc"></b>
<DocType>HTML</DocType>
<Filename>test.txt</Filename>
<DocData format="base64">PEhUTUwD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25pYywgR2VybWFueSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJCTwvQk9EWT4NCgk8L0hUTUw</DocData>
</Document>
<b><Document ref="ClickToDoc"></b>
<DocType>HTML</DocType>
<Filename>panasonic.htm</Filename>
<DocData format="base64">PGh0bWwPGhlYWQPG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMTtVUkw9aHR0cDovL3d3dy5wYW5hc29uaWMuY28udWsiPjwvaGVhZD48Ym9keT5Mb2FkaW5nIHBhZ2UgLi4uIGh0dHA6Ly93d3cucGFuYXNvbmljLmNvLnVrIDwvYm9keT48L2h0bWw+</DocData>
</Document>
</DocumentSet>
<Message>
<JobOptions>
<EnhancedEmailOptions>
<Subject>Thank you for Visiting Panasonic at Security Essen 2006</Subject>
<FromDisplayName>Panasonic</FromDisplayName>
<HTMLOpenTracking>top</HTMLOpenTracking>
</EnhancedEmailOptions>
</JobOptions>
<Destinations>
<Internet>
<InsertList>
<Insert number="1">Ken</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">Kenny</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">K</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
</Destinations>
<Contents>
<Part>
<DocRef>HTMLDoc</DocRef>
<Treatment/>
</Part>
<Part>
<DocRef>ClickToDoc</DocRef>
<Treatment>pullfile</Treatment>
</Part>
</Contents>
</Message>
</<b>ns1:</b>JobSubmitRequest>
</soap:Body>
</soap:Envelope>
Just try this and let me know if it works.
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish
Thanks again for the reply.
What puzzles me is that I'm able to take the message and send it successfully using XMLSPY, which makes me think the structure of the message is OK. The namespace ns1: is created in my XSLT. In a sample message provided by the web service provider, the first line of the Body is
<JobSubmitRequest xmlns:"http://xoa.xpedite.com/2004/11/xoa"> and the line in my XSLT is <ns1:JobSubmitRequest xmlns:ns1="http://xoa.xpedite.com/2004/11/xoa">.
Regards
Ken
Hi Ashish
Thanks for continuing with this.Much appreciated.
From SXMB_MONI, I can display the workflow log for my Integration Process. There are 2 mappings: the first sets up the basic payload data, the second uses the output from the first together with my XSLT to create the SOAP message. From the Workflow Log, I go into the Container Instance display for the second mapping and take the message as shown via MESSAGES_OUT. This is the one I can send to XMLSPY and is the one I posted to you.
The XML input to the second mapping is:
<MT_PGS_JobSubmitRequestPayload>
<DocumentSet>
<Document ref="HTMLDoc">
<DocType>HTML</DocType>
<Filename>test.txt</Filename>
<DocData format="base64">PEhUTUwDQoJPEhFQUQPC9IRUFEPg0KCQk8Qk9EWT4NCgkJCTxQPkRlYXIgKEkxKSwgPC9QPg0KCQkJPHAVGhhbmsgeW91IGZvciB0YWtpbmcgdGhlIHRpbWUgdG8gdmlzaXQgdGhlIFBhbmFzb25pYyBTeXN0ZW0gU29sdXRpb25zIHN0YW5kIGF0IHRoZSBSZXRhaWwgU29sdXRpb25zIFNob3cgbGFzdCB3ZWVrLiANCgkJCVdlIGhvcGUgeW91IGVuam95ZWQgdGhlIGV4aGliaXRpb24gYW5kIGZvdW5kIGl0IGJlbmVmaWNpYWwuIA0KCQkJPHAUGxlYXNlIGNsaWNrIG9uIHRoZSBsaW5rIGJlbG93IGZvciBhbiBvdmVydmlldyBvZiB0aGUgcHJvZHVjdHMgZGlzcGxheWVkIGF0IHRoZSBleGhpYml0aW9uIHBsdXMgb3RoZXIgcmVsZXZhbnQgaW5mb3JtYXRpb246DQoJCQk8cD48QSBocmVmPVxcXCJbcHVsbCBuYW1lPXBhbmFzb25pYy5odG1dXFxcIiAUGFuYXNvbmljIC0gU2VjdXJpdHkgRXNzZW4gUG9ydGFsPC9BPiB3ZWJzaXRlDQoJCQk8cD5JZiB5b3UgcmVxdWVzdGVkIHNwZWNpZmljIGluZm9ybWF0aW9uIGZyb20gb3VyIHN0YWZmIG9uIHRoZSBzdGFuZCB3ZSB3aWxsIGNvbnRhY3QgeW91IGFzIHNvb24gYXMgcG9zc2libGUsIGJ1dCBpZiB5b3UNCgkJCXdvdWxkIGxpa2UgYW55IGZ1cnRoZXIgaW5mb3JtYXRpb24gcGxlYXNlIGNvbnRhY3QgbWUgdXNpbmcgdGhlIGRldGFpbHMgYmVsb3cgYW5kIEkgd2lsbCBiZSBkZWxpZ2h0ZWQgdG8gaGVscC4NCgkJCTxwPktpbmQgcmVnYXJkcywNCgkJCTxwPkhhcmFsZCBaYW5kZXIsIFNhbGVzIE1hbmFnZXIsIFN5c3RlbSBTb2x1dGlvbnMgRGl2aXNpb24sIFBhbmFzb25pYywgR2VybWFueSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJCTwvQk9EWT4NCgk8L0hUTUw</DocData>
</Document>
<Document ref="ClickToDoc">
<DocType>HTML</DocType>
<Filename>panasonic.htm</Filename>
<DocData format="base64">PGh0bWwPGhlYWQPG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMTtVUkw9aHR0cDovL3d3dy5wYW5hc29uaWMuY28udWsiPjwvaGVhZD48Ym9keT5Mb2FkaW5nIHBhZ2UgLi4uIGh0dHA6Ly93d3cucGFuYXNvbmljLmNvLnVrIDwvYm9keT48L2h0bWw+</DocData>
</Document>
</DocumentSet>
<Message>
<JobOptions>
<EnhancedEmailOptions>
<Subject>Thank you for Visiting Panasonic at Security Essen 2006</Subject>
<FromDisplayName>Panasonic</FromDisplayName>
<HTMLOpenTracking>top</HTMLOpenTracking>
</EnhancedEmailOptions>
</JobOptions>
<Destinations>
<Internet>
<InsertList>
<Insert number="1">Ken</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">Kenny</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">K</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
</Destinations>
<Contents>
<Part>
<DocRef>HTMLDoc</DocRef>
<Treatment/>
</Part>
<Part>
<DocRef>ClickToDoc</DocRef>
<Treatment>pullfile</Treatment>
</Part>
</Contents>
</Message>
</MT_PGS_JobSubmitRequestPayload>
and the XSLT is :-
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Request xmlns="http://xoa.xpedite.com/2004/11/xoa">
<ReceiverKey>http://xoatweb1.xpedite.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID>uk/mrpan/pc</RequesterID>
<Password>welcome</Password>
</XDDSAuth>
</Authentication>
</Request>
</Header>
<soap:Body>
<ns1:JobSubmitRequest xmlns:ns1="http://xoa.xpedite.com/2004/11/xoa">
<xsl:copy-of select="//DocumentSet"/>
<xsl:copy-of select="//Message"/>
</ns1:JobSubmitRequest>
</soap:Body>
</soap:Envelope>
</xsl:template>
</xsl:stylesheet>
Regards
Ken
Hi Ashish
I've finally solved the problem.
First, there was a missing proxy setting.
Second, I re-built the Communication Channel (perhaps it was corrupt in some way)
Third, I had to add a module to the Communication Channel to convert the content type from application/xml to text/xml.
Thanks for all your help
Regards
Ken
Hi,
have you try to change XI tuning like explain in this Michal's weblog?
/people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
Mickael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys pls correct me if I am wrong, but Ken you are trying to consume WEB SERVICE using HTTP adapter?? I think you can do so only by using SOAP adapter.
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ken,
I faced the same issue last time and i found out that i had not included the proxy settings.
Pls to be sure in internet explorer, click <b>Tools > Internet Options > Connections > LAN Settings.</b>
There if the Proxy Settings are ON then copy the <b>Address</b> and <b>Port</b> and use it in SOAP receiver adapter and then try.
Then other main reason for the error that you have mentioned is that the <i><b>message structure going out of XI should be exactly same as the one expected by the webservice.</b></i> I would reckon that you check the structure of the out going message in <b>SXMB_MONI</b> and compare it with the structure expected by WEB service.
If they both are not same then you generally don't get any reply from the webservoce and hence the <b>HTTP TIMEOUT error.</b>
Regards,
Ashish
Hi Ashish
Sorry for late reply - I've only just picked up your email.
It was indeed missing proxy settings. I added these to the Communication Channel definition and the error was cleared.
I've got a different error now - com.sap.aii.af.ra.ms.api.DeliveryException: java.net.SocketException: Connection reset.
Regards
Ken
Hi Ken,
Could you solve the error: <i><b>com.sap.aii.af.ra.ms.api.DeliveryException: java.net.SocketException: Connection reset.</b></i>
This error is generally caused at the XI end itslef. I guess the message is still not able to reach the WEB SERVICE.
Could you send me the outgoing message and also Check SXMB_MONI to exactly find out at which stage the error is occuring.
Regards,
Ashish
Hi Ashish
The SOAP message was created by an XSLT (because I needed to add additional paramters to the SOAP header) and the Communication Channel has the 'Do not Use SOAP Evnvelope' ticked. It fails during the Call Adapter stage and this is the message.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Header xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Request xmlns="http://xoa.xpedite.com/2004/11/xoa">
<ReceiverKey>http://xoatweb1.xpedite.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID>uk/mrpan/pc</RequesterID>
<Password>welcome</Password>
</XDDSAuth>
</Authentication>
</Request>
</Header>
<soap:Body>
<ns1:JobSubmitRequest xmlns:ns1="http://xoa.xpedite.com/2004/11/xoa">
<DocumentSet>
<Document ref="HTMLDoc">
<DocType>HTML</DocType>
<Filename>test.txt</Filename>
<DocData format="base64">PEhUTUwDQoJPEhFQUQPC9IRUFEPg0KCQk8Qk9EWT4NCgkJCTxQPkRlYXIgKEkxKSwgPC9QPg0KCQkJPHAVGhhbmsgeW91IGZvciB0YWtpbmcgdGhlIHRpbWUgdG8gdmlzaXQgdGhlIFBhbmFzb25pYyBTeXN0ZW0gU29sdXRpb25zIHN0YW5kIGF0IHRoZSBSZXRhaWwgU29sdXRpb25zIFNob3cgbGFzdCB3ZWVrLiANCgkJCVdlIGhvcGUgeW91IGVuam95ZWQgdGhlIGV4aGliaXRpb24gYW5kIGZvdW5kIGl0IGJlbmVmaWNpYWwuIA0KCQkJPHAUGxlYXNlIGNsaWNrIG9uIHRoZSBsaW5rIGJlbG93IGZvciBhbiBvdmVydmlldyBvZiB0aGUgcHJvZHVjdHMgZGlzcGxheWVkIGF0IHRoZSBleGhpYml0aW9uIHBsdXMgb3RoZXIgcmVsZXZhbnQgaW5mb3JtYXRpb246DQoJCQk8cD48QSBocmVmPVxcXCJbcHVsbCBuYW1lPXBhbmFzb25pYy5odG1dXFxcIiAUGFuYXNvbmljIC0gU2VjdXJpdHkgRXNzZW4gUG9ydGFsPC9BPiB3ZWJzaXRlDQoJCQk8cD5JZiB5b3UgcmVxdWVzdGVkIHNwZWNpZmljIGluZm9ybWF0aW9uIGZyb20gb3VyIHN0YWZmIG9uIHRoZSBzdGFuZCB3ZSB3aWxsIGNvbnRhY3QgeW91IGFzIHNvb24gYXMgcG9zc2libGUsIGJ1dCBpZiB5b3UNCgkJCXdvdWxkIGxpa2UgYW55IGZ1cnRoZXIgaW5mb3JtYXRpb24gcGxlYXNlIGNvbnRhY3QgbWUgdXNpbmcgdGhlIGRldGFpbHMgYmVsb3cgYW5kIEkgd2lsbCBiZSBkZWxpZ2h0ZWQgdG8gaGVscC4NCgkJCTxwPktpbmQgcmVnYXJkcywNCgkJCTxwPkhhcmFsZCBaYW5kZXIsIFNhbGVzIE1hbmFnZXIsIFN5c3RlbSBTb2x1dGlvbnMgRGl2aXNpb24sIFBhbmFzb25pYywgR2VybWFueSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQoJCTwvQk9EWT4NCgk8L0hUTUw</DocData>
</Document>
<Document ref="ClickToDoc">
<DocType>HTML</DocType>
<Filename>panasonic.htm</Filename>
<DocData format="base64">PGh0bWwPGhlYWQPG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMTtVUkw9aHR0cDovL3d3dy5wYW5hc29uaWMuY28udWsiPjwvaGVhZD48Ym9keT5Mb2FkaW5nIHBhZ2UgLi4uIGh0dHA6Ly93d3cucGFuYXNvbmljLmNvLnVrIDwvYm9keT48L2h0bWw+</DocData>
</Document>
</DocumentSet>
<Message>
<JobOptions>
<EnhancedEmailOptions>
<Subject>Thank you for Visiting Panasonic at Security Essen 2006</Subject>
<FromDisplayName>Panasonic</FromDisplayName>
<HTMLOpenTracking>top</HTMLOpenTracking>
</EnhancedEmailOptions>
</JobOptions>
<Destinations>
<Internet>
<InsertList>
<Insert number="1">Ken</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">Kenny</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
<Internet>
<InsertList>
<Insert number="1">K</Insert>
</InsertList>
<Email>ken.lee@eu.panasonic.com</Email>
</Internet>
</Destinations>
<Contents>
<Part>
<DocRef>HTMLDoc</DocRef>
<Treatment/>
</Part>
<Part>
<DocRef>ClickToDoc</DocRef>
<Treatment>pullfile</Treatment>
</Part>
</Contents>
</Message>
</ns1:JobSubmitRequest>
</soap:Body>
</soap:Envelope>
Regards
Ken
hi,
Try SOAPSONAR to send the SOAP messages it will guide you in tracking and fixing the error....
Amaresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One of the reason for the 'HTTP_TIMEOUT' error occurs if the message is too huge,
Tcode-ST22 and check out the DUMP.
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.