client 2 « Web Service « Java Enterprise Q&A





2. (A)Synchronous web service (client)    coderanch.com

Synchorous.. Commonly used in web environments. A client makes a request and waits for the response. example: Asynchorous.. A client will send a request, disconnet, then may come later and pick up the response by supplying the given uniqueID. I once read in Axis mailing list they have a sample on this, but cant find it now. I guess BPEL is ...

3. not able to generate client jar    coderanch.com

Hi, Iam trying to generate client jar for webservices running on HTTPS. Iam using clientgen task for this and I've webserviceclient+ssl.jar in my classpath. When I run clientgen I get the following error-- Please check the URL and make sure that it is a valid XML file [javax.net.ssl.S SLKeyException: FATAL Alert:BAD_CERTIFICATE - A corrupt or unuseable certificate was received.] at weblogic.webservice.tools.wsdlp.DefinitionFactory.createDefinition(De ...

5. Creating web service client    coderanch.com

6. No output on .Net Client side    coderanch.com

Hi Jean-Louis, Thanks for your reply. I'll try the TCPMonitor. I was surprise that .Net client will have deserialization problem for a simple string. By searching online for an answer, I found I was not the only one having this problem. But most of the people had (retun null)problems for complex type though. Lilly

7. How to automate the build process of writing web service clients    coderanch.com

Hi All, I have one interesting doubt! Say there are lot of WSDL's exposed by some third party web service providers. I am using Apache AXIS 1.2 RC2 on client side. Are there any tools out there that can write java client programs automatically that used stubs generated by AXIS 1.2 RC2. Since the wsdl's may describe a method that takes ...

8. JAX-RPC Client invoking Document based web service    coderanch.com

Fisher, I tried what you said, but I get a run-time exception like this.. javax.xml.rpc.JAXRPCException: failed to invoke operation 'validationService' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/']:validationServiceRequest}]StackTrace[ javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/']:validationServiceRequest} at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328) at ...





10. JAVA Client for calling Web Services.    coderanch.com

11. axlis client examples    coderanch.com

14. How to write pure JAX-RPC client to invoke webservice?    coderanch.com

Hi, Can anyone tell me how to write a JAX-RPC client(I mean pure JAX-RPC, without any proprietary import statements like org.apache.axis.*.*) For information I have written client to the level we can send complex type object as an arguement to Web service. But, now I need to get the same object after modification in the web service. For this we need ...

15. java client for the webservice    coderanch.com

16. Invoking WebService Implemented using VB 6.0 from a Java/J2EE Client    coderanch.com

What's the "obvious" reason you can't use stubs? Am I missing something? If you have a WSDL, you can run any old mapping tool (Axis wsdl2java, Weblogic clientgen, JWSDP wscompile etc) over it, and access it via the Java stubs. All those tools implement JAX-RPC to a greater or lesser extent. -Tim





17. problem with running webservice client in axix    coderanch.com

hi , i am using tomacat 4.1 and axix 1.2 . The webservice deployed om i can see the wsdl file . Now on running the web service client i am getting the fillowing exception Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.rpc.encoding.T ypeMapping.getSerializer(Ljava/lang/Class;Ljavax/xml/rpc/namespace/QName Ljavax /xml/rpc/encoding/SerializerFactory; at org.apache.axis.encoding.TypeMappingImpl.getSerializer(Unknown Source ) at org.apache.axis.encoding.TypeMappingImpl.getSerializer(Unknown Source ) at org.apache.axis.encoding.SerializationContextImpl.getSerializer(Unkno wn Source) at org.apache.axis.encoding.SerializationContextImpl.serializeActual(Unk nown Source) at ...

18. DII and dynamic web service client    coderanch.com

19. WSS in Java with Tick .NEt Clients    coderanch.com

Hello everybody I've been a week and a half looking for some ideas to implement a Java Web Service compliant with WebServiceSecurity asking for clients to send a token but I couldn't do it. I'm using Axis and WSS4J but I don't know how to manage tokens emission and make a .Net Winform to act as a client, send a token ...

20. jax-rpc exception while deploying WEB SERVICE CLIENT in Sun One 8.1 App'ln Server    coderanch.com

Hi friends, I am getting problem while deploying the WEB SERVICE CLIENT application in Sun One 8.1 Application server. I am getting the following JAX-RPC Exception in last phase of deployment. For your convinience I am placing the exception below: [#|2005-08-25T15:34:26.156+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=16;|Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler -- jaxrpc compilation exception at ...

22. SOAPException= SOAP-ENV:Client, No Deserializer found to deserialize    coderanch.com

Vinod, Such errors are usually caised due to : Mismatch in Schemas that were used to generate the client Vis a Vis the Schemas that were used to create the Webservice. Most likely cause of this error are your Schema Files, else your client program does not have the correct(updated) Schemas. Thanks,

23. Accessing Web Service from a Java Client    coderanch.com

Good morning to all....... I have a requirement to test the WS-Security of a web service running on WebLogic with a UserNameToken. The goal is assertaining if the service is setup properly and prevents any request without the correct UserNameToken. The secenario I see is something like a cactus scenario where I lookup the web service within the JNDI and pass ...

24. Problem with Java Client    coderanch.com

Hi! I'm also into similar kind of problem .pls help. I'm using axis1.3 Below is the stack trace. java.lang.NullPointerException AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NullPointerException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) ...

25. web service at client end    coderanch.com

hi folks.. i had a web service, which will take name as a parameter and returns the greeting to that name.. In one machine i got tomcat and axis.. when i run the WS, on the machine where axis n tomcat are installed, using command prompt, its executing.. c:\>java -classpath %AXISCLASSPATH%;C:\dev javaworld.axis.Client1 sathya o/p:: Hi!sathya welcome to WS Where dev is ...

26. pass a simple bean object to a vba client    coderanch.com

Dear Ulf Dittmer, I just have a simple bean (having more or less Strings as members) and I want to pass that to the VBA client. I know I can use struct. etc. however I am specifically looking for an Example or may be other ways to do it with a little code snippet. I am pretty new to it, so ...

27. client receiving Null value    coderanch.com

posted November 17, 2005 05:50 AM -------------------------------------------------------------------------------- hi guys, I have developed a webservice using Axis1.1 and a java Client. Webservice is a simple file mangement system where it receives file from client and sends requested files as Attachment. ///// String str = VET_GetFile(ID, Filename); //service function public java.lang.String VET_GetFile(ID, Filename); { String str = "S_FAILED"; if (VET_Authnticate(ID) { str = ...

28. Mainframe client    coderanch.com

For the most part web services mean sending SOAP over HTTP. So if you can use HTTP to send and receive data, you should be good to go, because SOAP is just XML, which is just text, which you can surely generate and parse on a Mainrrame. An interesting question that arises is: are there libraries that let you deal with ...

29. Client receiving NULL.    coderanch.com

posted November 17, 2005 06:04 AM -------------------------------------------------------------------------------- posted November 17, 2005 05:50 AM -------------------------------------------------------------------------------- hi guys, I have developed a webservice using Axis1.1 and a java Client. Webservice is a simple file mangement system where it receives file from client and sends requested files as Attachment. ///// String str = VET_GetFile(ID, Filename); //service function public java.lang.String VET_GetFile(ID, Filename); { String str ...

30. Web Service Client programming models    coderanch.com

31. dynamic web service client pointers    coderanch.com

Hi all, I need to create a dynamic web service client, by dynamic I mean it will have no specific knowledge of any web services itself. What I have so far are my web services deployed using axis, each web service has an inspection.wsil file that is located at url entry point and a class that reads the inspection.wsil files to ...

33. Testing clients of ws-secured web service    coderanch.com

I have read this posting: 002865 I am trying to do the same thing. With much help from Ulf I have gotten my web service running and using wss4j's UsernameToken. Now I have the task of creating a bunch of mock clients that access the web service verifying my work before. This serves another purpose as we will have implemented what ...

34. Client running in standalone not in EAR    coderanch.com

36. DII client    coderanch.com

This is how it looks in my wsdl file. what do you think what code should i read. I am sorry being so dumb. third and fourth argument is an array of string Thanks Imad

37. Writing web service client    coderanch.com

Hello All, I need to write a client which will be invoking a public function from Sky Web server. I have wsdl addr, end-point addr, Function name [which is to be invoked with all parameters] and I m using JDK 1.5 I m totally new into this topic, So can somebody guide me how should I proceed? What else I need ...

39. Java Client and .Net web service    coderanch.com

40. A very generic web service client needed    coderanch.com

Is it possible to write a client for accessing any web service - if it is given an url of a WSDL file? In this situation the client can call the webservice by sending an XML and will get in return an XML. In this way client does not need to know about the data types of input or ouput parameters. ...

41. Add an encryption token as a (wsse:BinarySecurityToken) in the client request    coderanch.com

I am building a web service client for a web service deployed on Microsoft .NET platform. The web service requires that the client needs to add an Encryption token (Server's public key that was used to encrypt request envelop) in the SOAP message. WSE2.0 uses this token to find the appropriate private key from server's key store to decrypt the xml ...

42. .Net Server and Java Client    coderanch.com

Hi All, I am very new to Web services. Since one week I am struggling to configure the web services client and make it work. I am given .asmx?wsdl (developed in .Net) with which I need to configure the web services client. test() method is written which is taking integer parameter as input and returns a Dime attachment as output. I ...

44. How to deploy J2SE client    coderanch.com

I guess the first thing would be to have J2SE runtime installed on the client machine. Then, look in the project for any generated jar file, or class files for the client. We would also need any of the dependent jar files that are used by the sample client. Then, to run outside of the netbeans project, you will need a ...

45. How would the client know what kind WS-security to use to access the secured service    coderanch.com

Hi, I implemented a webservice using WS-Security of digital certificate. I am using the WebSphere 5.1 studio so I see the generated ibm-webservices-bnd.xmi and ibm-webservices-ext.xmi two files contain this security integrity configuration. However the WSDL file itself seems has no change compared with the webservice with no-security. I am wondering how would the webservice client know what kind WS-security he should ...

46. looking for a way to deliver data to client using web service    coderanch.com

I'm looking for a way to deliver data to client using web services. I don't have too much previous knowledge about web services. Could someone please point me to the right direction to do this? I need to know things like: What kind of environment needed for using web services? Which technology is the best? Are there any open source available ...

47. Call .NET Web Service From JAVA Client    coderanch.com

Hello All, I have to make a web service client.I am doing this by appache-soap. I have make One Proxy as follows. inSide somemethod (this method i am calling in my client program) { org.apache.soap.messaging.Message _message = new org.apache.soap.messaging.Message(); //My Own Body MessageBody mBody = new MessageBody (); // Replace the default body with my body this._envelop.setBody (mBody); _message.send ("http://myDomain/SomeService/SomeService.asmx","http://myDomain/SomeService/SomeService.asmx/getEncryption", this._envelop); ...

48. Web Services Client Error    coderanch.com

When calling a web service using a web services client using a SOAP binding I am getting the following error. It works fine if I run everything on the same machine. But when I run the web service on a server and run the client on my laptop, it fails. I have researched this and haven't found a workable solution. Can ...

49. client runtime jars    coderanch.com

After attending class, I'm working on a sample web service. I deployed the web service on our Websphere 6 server and from RAD 6, I'm able to run the client (java app) and get the results I expect from the service. Now I want to export the client code from my development environment and run it somewhere else. My instructions from ...

50. getting access to provider's ibm-webservices-ext.xmi by client ..?    coderanch.com

Hi This is with respect to web services security. In the Case of Dynaimc Web Service, using UDDI API we will be able to get the WSDL file of the provider. If the provider services is secured( Using WS Security) then no information regarding which security mechanisms are used are present in WSDL file. But for the client to invoke the ...

51. Web service client timeout    coderanch.com

53. Getting java.net.ConnectException: while running client    coderanch.com

Hey, I was trying to call web service method which takes some parameter from client and connects to mysql db ,gets the result set and prints the info on console.I was just using normal jdbc(4 th driver).but i was facing below error and I am using Apache Axis.. i have doubt that may I need to specify db info in axis(server.xml)?? ...

54. Running a Client    coderanch.com

55. JAX-WS client    coderanch.com

Thank you Ulf for your hints. My SCJP doesn't mean that Tutorial should refer to other technology like ANT they should written it simple,anyway I analyzed that damn build.xml and wrote my JAXWS service. I need some core knowledge about jax-ws these example you sent me I read them before, they are very simple I need something to explain me jaxws ...

56. Invoking a web service through a client    coderanch.com

Ant is not needed. Ot is perfectly possible to wrote a Java client app that connects to a WS and not use Ant at all. The build file may be using the WSDL of the WS to generate the client, and then invoke the client, but that would just be to make it easier for the developer, not because it's necessary. ...

57. how to send response back to the client    coderanch.com

59. what is the good/standard way to inform client the parameter restriction/fomat    coderanch.com

Hi all, I posted couple messages but seems not big response. So I will simplify my question as this: What is the good or standard way to implement the webservice so the ciient will know the rule of the data format so they can do the program validation at their side? I listed couple ways I tried, could anyone tell me ...

60. calling jaxws- service/server from jax-rpc client    coderanch.com

Hi, i am trying to call a service i have published in jax-ws compliant server(sun application server) from a client built on jax-rpc (jax-rpc client calling jax-ws server/service). i tried building the jax-rpc client from the wsdl exposed by jax-ws and am running into problems.i am unable to compile them and is throwing errors(given below).its a simple hello world program. help ...

61. Client Server Apps accessing Webservices    coderanch.com

Hi I have the following questions w.r.t to the application I am going to design a web service based on Java tech. I need answers to the following questions i) Can client Server application (like desktop based Java swing apps) access the web services ii) Can Portal application access the web services iii) Also can applications based on Microsoft technologies like ...

62. .Net Client and java web service    coderanch.com

63. writing jaxws 2.0 client    coderanch.com

Can we write jaxws-2.0 client for any web-service....I think we can. **I think the only difference between writing jax-rpc client and jaxws client is the use of annotations on client side in case of jaxws client. **what all are the differences between jax-rpc client and jaxws client. **what all are the differences between jax-rpc webservice and jaxws web service.

64. Dynamic Invocation Class from Client    coderanch.com

65. Anyone run a web client on Jrun 4?    coderanch.com

66. Generic Client - to be or not to be ?    coderanch.com

Currently my Master Theses is to create a generic client in SOPA framework, it is now relatively ready but it doesn't support complex type in XSD. I(maybe with some other Uni. students) would like to create open source project and implement it, in a way that can be used for all kind of webservices, do you think it make a sense ...

67. Web Service Client & Certificate    coderanch.com

Good morning! I am trying to create a Web Service client. The WSDL style is RPC/Encoded and the service runs over SSL & requires a digital certificate. So far I have done the following: (1) Downloaded the certificate from the Client Site using IE. (2) Imported the *.cer file into a keystore. (3) Generated a client using the Axis 1.4 WSDL2Java ...

69. Dynamic Invocation Client    coderanch.com

70. jdk1.3 client, weblogic8.1 webservice    coderanch.com

71. Problem when create client for web services because of XSD import url    coderanch.com

Hi Thank you for reading my post. we have problem when we want to create client for our web services deployed inot Glassfish. Indeed the root of problem is the xsd url that is included into the WSDL by netbeans or glassfish. for example we have installed glassfish on our test server which has a valid ip address. when we check ...

72. WSAD5.1 WebService Client failure?    coderanch.com

Ok - So I'm new to the whole webservices game and I'm told "We need to export employee data to System 'X' - a .NET system via a webService. From what I've read and know this should be a fairly straight forward proposition... The .NET people sent me a url to some wsdl - which all looked reasonable enough and I ...

73. JAX-WS Client    coderanch.com

74. JAX-WS client issue    coderanch.com

75. Response Tracking in the Web Services is possible if reached client or not?    coderanch.com

Hi Every Body, I have a typical situation from the business perspective. This is my situation Client initiates a Web Service request to Server1. Server1 again initiates another web service request to Server2. Then Server2 sends response to Server1 and Server1 will send back to the client. The requirement is If due to connection failure/ some other reason if Client is ...

76. How to develop WSDL/SOAP client?    coderanch.com

77. java webservices and .net client    coderanch.com

79. webservices need client jars, is it?    coderanch.com

80. Want to try a simple web service client...    coderanch.com

Last 6 hours I've been searching and reading on writing a simple web services client. I'm sure there must be a "Hello World" web service somewhere to which I can connect and write my sample client. But I'm really confused on what API I must use, what jars I need to have in my classpath, what code generators I must use, ...

81. Facing Problem in Web Service Client - Server.NoService    coderanch.com

Hi, I am getting this error when i run my web service client AxisFault faultCode: {http://xml.apache.org/axis/}Server.NoService faultSubcode: faultString: The AXIS engine could not find a target service to invoke! targetService is null faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:01HW128680 The AXIS engine could not find a target service to invoke! targetService is null at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown ...

82. Unable to run the Client for the WebService created    coderanch.com

Hi Friends, I am a novice in WebServices.I have been learning it since last month. I am using Axis and Tomcat to run the Webservice. I have created a WebService , which is basically used to append two strings and return the concatenated string. The Service is perfectly deployed on the Tomcat Axis , as it lists down the services that ...

83. web service client test.    coderanch.com

Hello everyone, I try to test my web service locally using Tomcat. For example, I have hello.wsdl, I use WSDL2Jave to produce the client java files using Axis. Everything looks fine when I test the HelloWorld web service.(Input a string, get HelloWorld + that string in client part). But when I change the simple HelloWorld to another complex class(in server), It ...

84. Handler not invoked at Client side    coderanch.com

85. A sample web service client    coderanch.com

I would like to try out a simple web service client. I checked xmethods.com but the simplest one I could find was this. Let's say if I want to write a client for this web service, what are all the things I must do? I have the WSDL document, I guess I have to generate some Java classes out of this ...

86. Web services client ...    coderanch.com

87. DII Client    coderanch.com

89. Webservices : Writing a client    coderanch.com

Hi, I am not aware of Java Web Services. I have to create a client to call a webservice. I was searching for the code in google but failed to understand what files/components/jars need to be there at the client side to call a web service. Can anyone let me know how to create a client which makes a call to ...

90. JAX-WS and implementing Client Callbacks    coderanch.com

Hi All, In my system, I have a Web Service which exposes some basic synchronous methods. Now, the actual response to the calls leads to the service sending multiple messages to the client. Therefore, for every call that a client makes, the server returns multiple results. The way that we want to implement this is by having the client exposing a ...

92. Throwing exception while running client for JAX-RPC    coderanch.com

I am new to WebSphere and I have creaeted lot of test application in WS but before going for actual implementation. Here I am trying to creaet a WS client side implementation. 1) The Service Endpoint is a WSDL link, and its binding style is "JAX-RPC" and its type is Encoded. 2) I have created the client side dependent file using ...

93. Error while running web service client in RAD 6.0    coderanch.com

Originally posted by Padma Athimoolam: I am getting below error while running webservice client in RAd 6.0 Before calling service************* SOAP FAULT Faultcode: HTTP FaultString: Connection refused: connect FaultActor: null The client is Java application and server is websphere application Server 6.0 .Can you help to solve this issue. Thanks in Advance

96. regarding jaxrpc clients    coderanch.com

97. web service client type    coderanch.com

Hi, I am new to web services. I need to write a web service client that invokes a web service method. The method takes complex types as parameter and returns a complex type.what kind of client(static stub, dynamic proxy or DII) should I use to invoke such kind of method? Is it impossible to use dynamic proxy or DII for this ...

98. webservice client best practices    coderanch.com

Hi there, We are in the process of creating a web app which talks to a web service and not a database. I have experience building apps using the three tier (prezentation - service - dao) architecture always talking to the database. I would want to know if I can stick to the same when the underlying system to communicate is ...

99. dynamic proxy client web service    coderanch.com

100. RPCServiceClient from client    coderanch.com