JBoss Community

Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header

created by Joseph Hwang in JBoss Web Services - View the full discussion

I made JBossWS code and deloyed it. Deployment was successful.

In JbossWS environment, I generated SampleClient.java.

 

package com.aaa.ws.clientsample;

import com.aaa.ws.*;

public class ClientSample {

public static void main(String[] args) {

   System.out.println("***********************");
   System.out.println("Create Web Service Client...");
   WSHelloWorldService service1 = new WSHelloWorldService();
   System.out.println("Create Web Service...");
   WSHelloWorld port1 = service1.getWSHelloWorldPort();
   System.out.println("Call Web Service Operation..."); // No Exception occurs until this line
   System.out.println("Server said: " + port1.sayHello("aaa")); // Exception Occurs  

   System.out.println("***********************");
   System.out.println("Call Over!");
   }
}

 

Exception is

 

***********************

Create Web Service Client...

Create Web Service...

Call Web Service Operation...

Exception in thread "main" javax.xml.ws.WebServiceException : No Content-type in the header!

....

 

Did I miss any process? Pls give me some advice.!!

 

Best Regard!

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community