on 06-22-2007 7:33 PM
I have a integration scenario (IDOC to WebService).
The web service has an action with receives 2 parameters
<MaterialNumber>
and
<MaterialList>
I have imported the wsdl file into Repository and I have define my interface.
But this webservice has a peculiarity:
The content of the second tag is also in xml format (but this is not defined in wsdl). For example
<MaterialList>
<Item>
<MaterialID>1</MaterialID>
<MaterialDescription>Example</MaterialDescription>
<CreationDate>10102007</CreationDate>
</Item>
</MaterialList>
A have tried to invoque the webservice with SAP SOAP Client. If i used < and > symbols for Item, MaterialID, MaterialDescription and CreationDate tags I get an xml error. So I have to use &lt; and &gt; instead and its works fine.
So in my message mapping I have done that. I have test it in integration repository and uses &lt; and &gt; in the generated xml. It does exactly what I want. I have a message in this form:
&lt;MaterialList&lt;
&lt;Item&lt;
&lt;MaterialID&lt;1&lt;/MaterialID&lt;
&lt;MaterialDescription&lt;Example&lt;/MaterialDescription&lt;
&lt;CreationDate&lt;10102007&lt;/CreationDate&lt;
&lt;/Item&lt;
&lt;/MaterialList&lt;
But once I execute my integration scenario, I do a communication channel monitoring and for my surprise i get the next message
& amp; &lt;MaterialList& amp;&gt;
& amp; &lt;Item& amp; &gt;
& amp; &lt;MaterialID& &gt;1& amp; &lt;/MaterialID& amp; & amp;gt;
& amp; &lt;MaterialDescription& &gt;Example& &lt;/MaterialDescription& &gt;
& amp; &lt;CreationDate& &gt;10102007& amp; &lt;/CreationDate & amp; &gt;
& amp; &lt;/Item& &gt;
& amp; &lt;/MaterialList& &gt;
It seems that the soap adapter has changed &< to & amp;lt;
Is there any way to avoid this?
Thanks to all.
Use CDATA tag and you won't have those problems.
Check this blog: /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you add < and > in the graphical mapping as constants, it replaces this by & lt ; and & lt ; by itself and you need not do this.
The reciever SOAP adapter does not replace anything, it has happend before.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.