473,569 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

post xml data back to external resouces in B2B solution

Hi all,

When an external resouce programmaticall y 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 2342
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(contai ns 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(contai ns 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
3109
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 has an include file (require_once) that checks to see if the current user has recently been authorized. 2) If not, the user is "handed off" to the...
4
2594
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 button which when clicked performs the data validation. After successful validation, I need the browser to redirect to the payment processer with a...
5
3016
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 need to send data from my server via the post method to the payment server. The payment server does not run asp.net. I dont know what they run. The...
10
1832
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 check your data prior to making payment. The problem I have is that the external payment provider requires that I POST (GET is not allowed) the...
10
3406
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 database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in...
3
5746
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 drive onto a USB External Hard Drive. I have to assume I also copied the data. I
5
2432
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 external site. No need to pull back any data. Here is the code I am using. Dim encoding As ASCIIEncoding = New ASCIIEncoding Dim myParams As...
3
1222
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 serverside scripting to be able to use the validation controls. Using GET to send the data is out of the question, because the data contains...
11
4353
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 procedure(assume there are many columns in the table). I need to insert data into two separate tables, the relation between these two tables is 1 row of...
0
7921
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.