如何将xml数据从java应用程序传输到.net应用程序
我需要将xml数据从java web应用程序传输到.net应用程序如何将xml数据从java应用程序传输到.net应用程序,java,jakarta-ee,Java,Jakarta Ee,我需要将xml数据从java web应用程序传输到.net应用程序 public void send() throws Exception { System.out.println("URL:"+getUrl()); System.out.println("Xml String:"+getConvertedString()); String s1=getConvertedString().toString(); FacesContext.getCurrentIns
public void send() throws Exception
{
System.out.println("URL:"+getUrl());
System.out.println("Xml String:"+getConvertedString());
String s1=getConvertedString().toString();
FacesContext.getCurrentInstance().getExternalContext().redirect(getUrl()+"?xmldata1="+s1);
}
就像我将数据从我的应用程序传输到其他应用程序一样
public void send() throws Exception
{
System.out.println("URL:"+getUrl());
System.out.println("Xml String:"+getConvertedString());
String s1=getConvertedString().toString();
FacesContext.getCurrentInstance().getExternalContext().redirect(getUrl()+"?xmldata1="+s1);
}
它会像url一样获取url
Kshitij是servlet,它将获得reuest参数并打印在页面上
就像这样,我需要传递.NETWebService并在页面上打印
提前感谢。您需要做的是像……这样构造url,在url中附加参数(xml),并将请求从Java web app发送到.net web服务。正如您提供的示例一样,您可以对.net应用程序执行相同的操作。您可以在.NETWeb服务中构造xml
或者,您还可以做一件事,将java应用程序的xml响应保存在共享位置的xml文件中,从您的dotnet应用程序/web服务中读取该xml文件。但此请求将被获取,我想发布它。如何做到这一点?