Java 如何设置SOAP_操作和WSDL_目标_命名空间?

Java 如何设置SOAP_操作和WSDL_目标_命名空间?,java,web-services,Java,Web Services,我正在使用VisualStudio创建一个示例web服务。 运行web服务时,路径为=http://localhost:62558/SmartPosterV1.asmx. 我的操作名是=HelloWorld。 如何获取SOAP\u操作和WSDL\u目标\u命名空间 请帮忙。谢谢。我在服务器上发布了web服务,并从服务器上调用它。问题解决了。谢谢 private static final String SOAP_ACTION = "http://sposter.smartag.my/getFile

我正在使用VisualStudio创建一个示例web服务。 运行web服务时,路径为=http://localhost:62558/SmartPosterV1.asmx. 我的操作名是=HelloWorld。 如何获取SOAP\u操作和WSDL\u目标\u命名空间


请帮忙。谢谢。

我在服务器上发布了web服务,并从服务器上调用它。问题解决了。谢谢

private static final String SOAP_ACTION = "http://sposter.smartag.my/getFileName";
private static final String SOAP_ADDRESS = "http://sposter.smartag.my/WebService1.asmx";
private static final String WSDL_TARGET_NAMESPACE = "http://sposter.smartag.my";
private static final String OPERATION_NAME = "getFileName";
您确实需要WSDL see文件来指定程序访问SOAP Web服务的方式。
private static final String SOAP_ACTION = "http://sposter.smartag.my/getFileName";
private static final String SOAP_ADDRESS = "http://sposter.smartag.my/WebService1.asmx";
private static final String WSDL_TARGET_NAMESPACE = "http://sposter.smartag.my";
private static final String OPERATION_NAME = "getFileName";