473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

post xml data back to external resouces in B2B solution

Hi all,

When an external resouce programmatically post the XML document as content
of http post request, and at server-side, I can read the XML data from http
request's
body. Just like this example provided by Steven Chen:

#Happy Days Are Here Again: Posting XML to the Server
http://msdn2.microsoft.com/en-us/library/ms950790.aspx

After I process the data, I need to write a response message to the external
resource in xml data format(either succeful messge or failed message). what
people usually do, do I just write the xml message to response output
stream(let them extract from my page themselves) or
post data back to their page (which initially post/submit data to my server
program).
Do you have any information about that?
Thank you.

--
Betty
Apr 26 '07 #1
2 2333
Hi Betty,

For the question you mentioned here, IMO, it is mostly depend on your
partner, what's their expected or desired message exchange pattern?

If they prefer a request/response pattern ,then you should return the XML
document(contains the data return to your partner) after processing the
request data and write them into ASP's response stream.

If they prefer a one way request and async response pattern. For example,
they will always send one way requests to you, and give you a url address
to post response data, then, you can freely processing the request data and
then start a new http post request and post return data to the partner's
host page.

For detailed message content, surely, you should use XML document since it
is easy to maintain and process. And such B2B exchange is mostly done
through webservice which just encapsulate the underlying XML/soap message
processing. Anyway, the most important thing is that you and your parnter
should define a shared message exchange schema and pattern so that you can
communication correctly.

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 26 '07 #2
Steven,
We probably will select the first option, write my xml format data to
response stream.
Thanks for the confirmaiton. I never did it and I just want to make sure I
did the right way.
Sincerely
--
Betty
"Steven Cheng[MSFT]" wrote:
Hi Betty,

For the question you mentioned here, IMO, it is mostly depend on your
partner, what's their expected or desired message exchange pattern?

If they prefer a request/response pattern ,then you should return the XML
document(contains the data return to your partner) after processing the
request data and write them into ASP's response stream.

If they prefer a one way request and async response pattern. For example,
they will always send one way requests to you, and give you a url address
to post response data, then, you can freely processing the request data and
then start a new http post request and post return data to the partner's
host page.

For detailed message content, surely, you should use XML document since it
is easy to maintain and process. And such B2B exchange is mostly done
through webservice which just encapsulate the underlying XML/soap message
processing. Anyway, the most important thing is that you and your parnter
should define a shared message exchange schema and pattern so that you can
communication correctly.

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robert Oschler | last post by:
I am working on a PHP 4 app that interacts with an external authorization server. The external server does "third-party" authorization of users. So I do the following: 1) Each of my PHP scripts...
4
by: Wayne P. | last post by:
I'm working on a shopping cart webapp and I need to perform a form POST of data to a 3rd party site (a payment processor, StormPay). I seem to be having problems doing this. I have an image...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
10
by: Mark | last post by:
Hi All, I could do with some assistance... I am working on an ecommerce site in vb.net (aspx) I have built all my pages that perform the checkout process and gets to a summary screen where you...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
3
by: eieiohh | last post by:
MySQL 3.23.49 PHP 4.3.8 Apache 2.0.51 Hi All! Newbie.. I had a CRM Open Source application installed and running. Windows Xp crashed. I was able to copy the contents of the entire hard...
5
by: Tyler | last post by:
I am developing an application which will allow me to automatically sign into an external website. I can currently do a screen scrape using HTTPWEBREQUEST. However I want to just redirect to the...
3
by: Řystein Olsen | last post by:
Hi, I'm in need of help. My web page is built up from nested masterpages. In the page containing the main content i have a form that I want to post to a external site (isapi dll). I want to use...
11
by: c676228 | last post by:
Hi everyone, I am just wodering in asp program, if there is anybody writing store procedure for inserting data into database since there are so many parameters need to be passed into store...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.