[jboss-user] [JBossWS] - trouble calling web service

fjump do-not-reply at jboss.com
Fri Oct 12 09:08:01 EDT 2007


HI, i need help please, 

i got the following problem:
when i made a call to the web service, appears the error
avax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
$Proxy112.update(Unknown Source)
com.blackbulltv.settopbox.web.MainMenu.doGet(MainMenu.java:109)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


im trying to discover what is the problem but i dont find any solution.

this is the web service call
here is where i made a call to the web service, extracting the URL from a xml file:

BlackBullTvWebServices wsconf = new BlackBullTvWebServices();
String serv = wsconf.getPropertyValue("UpdateServiceURL");
URL url = new URL(serv);
QName qname = new QName("urn:com.blackbulltv.server.ws", "UpdateService");
Service service = Service.create(url,qname);
Update up = (Update)service.getPort(Update.class);
temp = up.update(vVersion,component_name,pType);

this is my xml file, that contain the URL of my web service.

http://192.168.0.17:8080/com.blackbulltv.server/MenuWs?wsdl
urn:com.blackbulltv.server.ws 

this is the web service client file:

@WebServiceClient(name = "MainMenuWsService", targetNamespace = "urn:com.blackbulltv.server.ws", wsdlLocation = "http://localhost:8080/Update/MainMenuWs?wsdl")
public class MainMenuWsService
extends Service
{

private final static URL MAINMENUWSSERVICE_WSDL_LOCATION;

static {
URL url = null;
try {
url = new URL("http://localhost:8080/Update/MainMenuWs?wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
MAINMENUWSSERVICE_WSDL_LOCATION = url;
}

public MainMenuWsService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}

public MainMenuWsService() {
super(MAINMENUWSSERVICE_WSDL_LOCATION, new QName("urn:com.blackbulltv.server.ws", "MainMenuWsService"));
}

/**
*
* @return
* returns MainMenuWs
*/
@WebEndpoint(name = "MainMenuWsPort")
public MainMenuWs getMainMenuWsPort() {
return (MainMenuWs)super.getPort(new QName("urn:com.blackbulltv.server.ws", "MainMenuWsPort"), MainMenuWs.class);
}

} 






View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094556#4094556

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094556



More information about the jboss-user mailing list