My code is
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage message = factory.createMessage();
// The message contains a SOAPPart object, so you use
// the getSOAPPart method of message to retrieve it:
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPHeader header = envelope.getHeader();
SOAPBody body = envelope.getBody();
header.detachNode();
Name bodyName = envelope.createName("GetLastTradePrice", "ztrade",
"http://wombat.ztrade.com");
SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
Name name = envelope.createName("symbol", "ztrade",
"http://wombat.ztrade.com");
SOAPElement symbol = bodyElement.addChildElement(name).addTextNode("SUNW");
URL url = new URL("http://3.209.126.224:5555/GERenaissance");
System.out.println("i am after the URL 22222 connection");
System.setProperty("javax.xml.soap.SOAPConnectionFactory",
"com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory");
System.setProperty("javax.xml.soap.SOAPConnection",
"com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection");
System.out.println("after setting the property");
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.
newInstance();
System.out.println("soapConnectionFactory" + soapConnectionFactory);
//Now you can use soapConnectionFactory to create a SOAPConnection object.
HttpSOAPConnection connection =(HttpSOAPConnection) soapConnectionFactory.createConnection();
System.out.println("connection 1234 fsdgfsdgfg" + connection);
System.out.println("after making connection ");
SOAPMessage resp = connection.call(message, url);
System.out.println("the response is " + resp);
This error is coming in the call method and i am using the weblogic 7.0 for deployment
java.lang.Error: NYI
at weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessag
eImpl.java:360)
at com.xml.soap.SOAPClient.doGet(SOAPClient.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5451)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:780)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3105)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2588)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>
-
I am getting this error when i an trying to using SOAP (1 messages)
- Posted by: kapil kapil
- Posted on: November 06 2003 07:08 EST
Threaded Messages (1)
- I am getting this error when i an trying to using SOAP by Peter Moloi on April 15 2004 10:44 EDT
-
I am getting this error when i an trying to using SOAP[ Go to top ]
- Posted by: Peter Moloi
- Posted on: April 15 2004 10:44 EDT
- in response to kapil kapil
Can somebody help, I'm getting the same error.
java.lang.Error: NYI
at weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessageImpl.java:360)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:210)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:115)
at SOAPClient.<init>(SOAPClient.java:67)
at SOAPClient.main(SOAPClient.java:86)