使用JAVA 1.4连接到wsdl webservice [英] connect to wsdl webservice using JAVA 1.4

查看:58
本文介绍了使用JAVA 1.4连接到wsdl webservice的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要连接到WSDL。使用java 1.4的ASP.net webservice

我可以在JAVA 1.7中执行此操作,但我无法将当前环境升级到1.7所以这需要在JAVA 1.4中完成



我需要访问一个服务方法,例如:(在c#中)



 Webservice.Service serv = < span class =code-keyword> new  Webservice.Service(); 

Arraylist lst = serv.getStats( username 密码);





我如何在JAVA 1.4中做同样的事情。包括与WSDL的连接



我在JAVA中尝试过https get但是不断收到服务器返回错误500.

解决方案

如果您收到错误500 ,则表示您的Java代码能够调用Web服务。但Web Service抛出一些内部异常。如果您拥有Web服务代码,则可以通过调试Web服务代码来暂停。



您是否尝试过使用 SAAJ API ?它确实支持Java 1.4。以下是它的参考。



http ://docs.oracle.com/javaee/1.4/tutorial/doc/SAAJ4.html

I need to connect to a WSDL. ASP.net webservice using java 1.4
I can do this in JAVA 1.7 but I cannot upgrade the current environment to 1.7 so this needs to be done in JAVA 1.4

I need to access a service method for example: (in c#)

Webservice.Service serv = new Webservice.Service();

Arraylist lst = serv.getStats("username", "Password");



how would I do the same thing in JAVA 1.4. including the connection to the WSDL

I have tried https get in JAVA but keep getting server returned error 500.

解决方案

If you are getting Error 500 that means your Java code is able to Call Web Service. But Web Service throwing some internal exception. If you own the Web Service code, then it may halp by debugging the Web Service code.

Have you tried using SAAJ API? It does support Java 1.4. Following is its reference.

http://docs.oracle.com/javaee/1.4/tutorial/doc/SAAJ4.html


这篇关于使用JAVA 1.4连接到wsdl webservice的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆