Announcement Announcement Module
Collapse
No announcement yet.
how to set client soap message style to document Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to set client soap message style to document

    This is the full exception,it clearly says there is a difference in soap message style which the service is expecting,but I donno know how to change the soap message style.

    org.springframework.ws.soap.client.SoapFaultClient Exception: WSWS3702E: Error: Could not resolve to an operation. The message contains an element named ""SingleNew"", but this element does not match any operation of the target port.
    However, the following operation(s) ( SingleNew) have similar information but are a different style.
    This difference might indicate that the client sent a rpc or wrapped document message and the server is expecting a document message.


    Below is my client program,The wsdl binding for my operation is document style.

    Code:
    public TestSingleNew(){
    		try {
    			
    			setDefaultUri("http://10.184.80.124:9081/FCUBSDEService/services/FCUBSDEServiceSEI");
    			Source requestSource = new StreamSource("src/SingleJrnl2.xml");
    			StringResult resultStr = new StringResult();
    			getWebServiceTemplate().sendSourceAndReceiveToResult(requestSource,resultStr);
    			System.out.println(resultStr);
    		} catch (Exception ex) {
    			ex.printStackTrace();
    		}
    	}
    	/**
    	 * @param args
    	 */
    	public static void main(String[] args) {
    		new TestSingleNew();
    	}
    Any help highly appreciated.
Working...
X