cancel
Showing results for 
Search instead for 
Did you mean: 

Plain HTTP Adapter (XML return without namespace)

Former Member
0 Kudos

Hello Experts,

I'm very new at XI.

I'm using XI 7.0 SP9.

I wanna make interface with public website using plain HTTP adapter.

The receiver url is

http://openapi.naver.com/search?key=cdb64b1f218b55acbb73105b3b6f68a9&query=news&target=rank

It returns XML like

<?xml version="1.0" encoding="UTF-8" ?>

<result>

<item>

<R1>

<K>CHOICE</K>

<S>new</S>

<V>0</V>

</R1>

</item>

</result>

How I can specify namespace and root document type ?

I learned that I can specify namespace and root document type in JDBC communication channel.

In plain HTTP, Is there any possibility to specify namespace like JDBC?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI JI,

As your reciving the XML message from HTTP reciver please ask the sender of the XML to include the namespace and document type.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

Sreeram,

Thanks for the asnwer. However, as I mentioned It's a public website which I can't ask

Former Member
0 Kudos

then you write a adapter module in ur adapter or Java mapping to add what you need.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

Thanks.

Could you please let me know where I can get some useful sample for JAVA MAPPING.

Any information would be much appreciated.

Former Member
0 Kudos

Ji,

look at this it will help u.

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii

/people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio

/people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom

Sreeram Reddy

bhavesh_kantilal
Active Contributor
0 Kudos

Hi

In the messagetype created in XI , remove the namespace for the response message and then XI will not expect the namespace from the target.

Regards

Bhavesh

Former Member
0 Kudos

Hello Bhavesh,

Is it work for XI 7.0 ?

I tried it several times but failed.

Former Member
0 Kudos

Hey

yeah it does work with PI7.0

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Thanx

Aamir

Message was edited by:

Aamir Suhail

Former Member
0 Kudos

It worked!!!

Thanks.

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Java Mapping

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm

Is ur scenario HTTP - XI - SOAP sync? Please clarify. What is ur sender side structure?

Regards,

Prateek