Static Stub Client
Hi everyone
I am using Static Stub.
The add(2,3) method works but not the getName()
when String getName() invoked Null value is returned.
----------------------- my Static Stub Client -----------------------------
public class Tester
public static void main(String [] args) throws Exception {
// Make a service
EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
// Now use the service to get a stub .
EmployeeRecord port = service.getEmployeeRecord();
// Make the actual call
int adding = port.add(2,3);
System.out.println("Show adding -->" + adding );
port.setName("reza");
String myName = port.getName();
System.out.println("Show my name -->" + myName );
------------------------ my Java class which is being used ------------------------------------
package bankStaff;
import java.io.*;
public class EmployeeRecord
private String name ;
public String getName()
return name;
public void setName(String name)
this.name = name;
public int add(int a, int b)
return a+b;
The only way that will return a value is when I modify it as the following but don't think is correct.
Because it behaves as setter & getter at the same time!!!!!!!!!!
public String setName(String name)
return (this.name = name);
But When I use the EmployeeRecord class in standalone application (Non Web service) the String getName() works! It returns String value.
EmployeeRecord class used in standalone application
EmployeeRecord myVar = new EmployeeRecord():
myVar.setName(String name);
myVar.getName();
(Obivosualy the class EmployeeRecord has to be instantiated)
Q2 - Also How can we instantiate a class in the Web services or do we have to?
e.g. EmployeeRecord myVar = new EmployeeRecord():
BTW: I am using Eclipse 3.1
Any clues please?
Kind regards
Hi
Find the build.properties located in the same directory of targets.xml
Add the j2ee.home location, in my case
j2ee.home= C:/Sun/AppServer
Good Luck
Marlene
Similar Messages
-
How to implement an independent static stub client ? Please, help
Hi everybody!
I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
- How to implement an independent static stub whithout the ant help?
- How can the client get the endpoint to create the proxy?
- Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
- Could anybody show me some sample code?
Well, that's it. I'm waiting for some answer. Please, help me.
Tks in advance,
Rodrigo.Can you explain what you mean by "independent static stub" ?
JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
Hope that helps.
Post your JAX-RPC related questions to [email protected] for a quicker resolution.
Send an email to [email protected] to subscribe to the alias.
Send an mail to [email protected] for a complete list of help commands.
-Arun -
Hello...!!!
I am trying to learn web services using j2ee.
when I try to build the static stub client, using 'asant build', build always failed. I've already built the service n can see its wsdl in ie.
I have given all the process below after typing 'asant build'
(I also donn understand 1 thing, I have set all environment variables on D drive though it shows C drive[see ** below], o/s:win xp)
Plz. help asap.
Thanks in advance.
.Mohit
/*process after asant build command*/
Buildfile: build.xml
clean:
[delete] Deleting directory D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
generate-stubs:
j2ee-home-test:
init:
prepare:
[echo] Creating the required directories....
[mkdir] Created dir: D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
set-wscompile:
run-wscompile:
[echo] Running wscompile:
[echo] ** c:\sun\appserver/bin/wscompile.bat -gen:client -d build -classpath build ${config.wsdl.file}
[exec] error: error: file not found: ${config.wsdl.file}
[exec] Usage: wscompile [options] configuration_file
[exec] Use "wscompile -help" for a detailed description of options.
j2ee-home-test:
init:
prepare:
[echo] Creating the required directories....
compile-client:
[echo] Compiling the client source code....
[javac] Compiling 1 source file to D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\build
[javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:46: cannot find symbol
[javac] symbol : class HelloIF
[javac] location: class staticstub.HelloClient
[javac] HelloIF hello = (HelloIF) stub;
[javac] ^
[javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:46: cannot find symbol
[javac] symbol : class HelloIF
[javac] location: class staticstub.HelloClient
[javac] HelloIF hello = (HelloIF) stub;
[javac] ^
[javac] D:\Mohit\j2eetutorial14\examples\jaxrpc\staticstub\src\HelloClient.java:56: cannot find symbol
[javac] symbol : class MyHelloService_Impl
[javac] location: class staticstub.HelloClient
[javac] return (Stub) (new MyHelloService_Impl().getHelloIFPort());
[javac] ^
[javac] 3 errorsi think these 2 lines are needed in <home>/examples/jaxrpc/common/build.properties to build jaxrpc examples
config.wsdl.file=config-wsdl.xml
config.interface.file=config-interface.xml -
Building stubs & Client-side bindings
Hi everyone
I have created a simple web service from my EmployeeRecord class.
I am using Static Stub to test it.
The add(2,3) method works but not the getName()
when String getName() invoked Null value is returned.
----------------------- my Static Stub Client -----------------------------
public class Tester
public static void main(String [] args) throws Exception {
// Make a service
EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
// Now use the service to get a stub .
EmployeeRecord port = service.getEmployeeRecord();
// Make the actual call
int adding = port.add(2,3);
System.out.println("Show adding -->" + adding );
port.setName("reza");
String myName = port.getName();
System.out.println("Show my name -->" + myName );
------------------------ my Java class which is being used ------------------------------------
package bankStaff;
import java.io.*;
public class EmployeeRecord
private String name ;
public String getName()
return name;
public void setName(String name)
this.name = name;
public int add(int a, int b)
return a+b;
The only way that will return a value is when I modify it as the following but don't think is correct.
Because it behaves as setter & getter at the same time!!!!!!!!!!
public String setName(String name)
return (this.name = name);
But When I use the EmployeeRecord class in standalone application (Non Web service) the String getName() works! It returns String value.
EmployeeRecord class used in standalone application
EmployeeRecord myVar = new EmployeeRecord():
myVar.setName(String name);
myVar.getName();
(Obivosualy the class EmployeeRecord has to be instantiated)
Q2 - Also How can we instantiate a class in the Web services or do we have to?
e.g. EmployeeRecord myVar = new EmployeeRecord():
Any clues please?
Kind regards
rezaDoes debugger help ???
Please post the soln, if u solve
L. -
Static IP clients stuck on dhcp_reqd after upgrade to LAP
I have wireless thermal printers that have static IP addresses. They are on an open wlan and the dhcp required box is not checked.
The client gets hung at DHCP_REQD even though the client has a static address.
Controllers are standalone wlc4402(x2) running 41.1.185.0. Access-points are a mix of 1510, 1231 and 1242. Clients running 802.1x PEAP and DHCP are ok (different SSID).
This is the log from the WCS troubleshooting window:
09/17/2007 06:57:49 EDT INFO 42.201.0.40 Controller association request message received.
09/17/2007 06:57:49 EDT INFO 42.201.0.40 Received reassociation request from client.
09/17/2007 06:57:49 EDT INFO 42.201.0.40 The wlan to which client is connecting does not require 802 1x authentication.
09/17/2007 06:57:49 EDT INFO 42.201.0.40 Client does not have an IP address yet.
09/17/2007 06:57:49 EDT INFO 42.201.0.40 Client Moved to DHCP Required State.
09/17/2007 06:57:49 EDT INFO 42.201.0.40 Client moved to associated state successfully.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 Controller association request message received.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 Received reassociation request from client.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 The wlan to which client is connecting does not require 802 1x authentication.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 Client does not have an IP address yet.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 Client Moved to DHCP Required State.
09/17/2007 07:00:00 EDT INFO 42.201.0.40 Client moved to associated state successfully.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 Controller association request message received.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 Received reassociation request from client.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 The wlan to which client is connecting does not require 802 1x authentication.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 Client does not have an IP address yet.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 Client Moved to DHCP Required State.
09/17/2007 07:00:05 EDT INFO 42.201.0.40 Client moved to associated state successfully.We got wireless network cameras (Axis 207W) that only connects when they are configured with DHCP, If they are configured with IP-addresses they get stuck at DHCP_REQ.
Our Laptops connects with both DHCP or IP configured, on the same WLAN as the cameras.
The cameras has no sleep mode. -
Stub/Client Generation of WSDL for Windows Communication Foundation Service
Hii,
I am building a client for the WCF service using Soap1.2 and ws-security. I have tried building a stub for the service using JDeveloper 10 g and also tried to validate the wsdl using XML spy. Both are giving errors. I wanna know how could i genrate the stub for the service and also Validate WSDL? I know i might have to modify the WSDL, but dont know what changes must be required? And Also which std i must adhere?
Here is the WSDL
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsap10="http://www.w3.org/2005/08/addressing"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:i0="http://Corona.Services.UserMgmt.UserMgmtSrv"
xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/09/policy/addressing"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract"
xmlns:tns="http://tempuri.org/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
xmlns:wsa10="http://www.w3.org/2005/08/addressing"
targetNamespace="http://tempuri.org/" name="UserMgmtSrv">
<wsdl:import namespace="http://Corona.Services.UserMgmt.UserMgmtSrv"
location="http://debugger/Corona.Services/Corona.Services.svc?wsdl"/>
<wsdl:types/>
<wsdl:binding name="WSHttpBinding_UserMgmtSrv" type="i0:UserMgmtSrv">
<wsp:PolicyReference URI="#WSHttpBinding_UserMgmtSrv_policy"/>
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Authenticate">
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
<wsdl:fault name="ArgumentExceptionFault">
<soap12:fault name="ArgumentExceptionFault"
namespace="http://Corona.Services.UserMgmt.UserMgmtSrv.FaultException"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="SaveHealthProfileWrapper">
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="UserMgmtSrv">
<wsdl:port name="WSHttpBinding_UserMgmtSrv"
binding="tns:WSHttpBinding_UserMgmtSrv">
<soap12:address location="https://debugger/Corona.Services/Corona.Services.svc"/>
<wsa10:EndpointReference>
<wsa10:Address>https://debugger/Corona.Services/Corona.Services.svc</wsa10:Address>
</wsa10:EndpointReference>
</wsdl:port>
</wsdl:service>
<wsp:Policy wsu:Id="WSHttpBinding_UserMgmtSrv_policy">
<wsp:ExactlyOne>
<wsp:All>
<wspe:Utf816FFFECharacterEncoding xmlns:wspe="http://schemas.xmlsoap.org/ws/2004/09/policy/encoding"/>
<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic128/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
<sp:IncludeTimestamp/>
</wsp:Policy>
</sp:TransportBinding>
<sp:EndorsingSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<mssp:RequireCancel wsp:Optional="true"
xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
<sp:BootstrapPolicy>
<wsp:Policy>
<sp:TransportBinding>
<wsp:Policy>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:Basic128/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Strict/>
</wsp:Policy>
</sp:Layout>
<sp:IncludeTimestamp/>
</wsp:Policy>
</sp:TransportBinding>
<sp:EndorsingSupportingTokens>
<wsp:Policy>
<sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<mssp:RequireCancel wsp:Optional="true"
xmlns:mssp="http://schemas.microsoft.com/ws/2005/07/securitypolicy"/>
</wsp:Policy>
</sp:SpnegoContextToken>
</wsp:Policy>
</sp:EndorsingSupportingTokens>
<sp:Trust10>
<wsp:Policy>
<sp:MustSupportIssuedTokens/>
<sp:RequireClientEntropy/>
<sp:RequireServerEntropy/>
</wsp:Policy>
</sp:Trust10>
</wsp:Policy>
</sp:BootstrapPolicy>
</wsp:Policy>
</sp:SecureConversationToken>
</wsp:Policy>
</sp:EndorsingSupportingTokens>
<sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:MustSupportIssuedTokens/>
<sp:RequireClientEntropy/>
<sp:RequireServerEntropy/>
</wsp:Policy>
</sp:Trust10>
<wsap10:UsingAddressing/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsp:UsingPolicy/>
</wsdl:definitions>I had the problem with JDev (9.0.4) when trying to generate server side classes from a homemade wsdl which took a complex type as a parameter. The only thing I got from JDeveloper was a class receiving an Element. Which pretty much means you have to do the work yourself.
Quite disappointing....!
I see to possibilities:
1) If you are stuck with 9.0.4 you will have to parse to and from xml yourself. For this you can use jax-b which is a Sun API used to create classes for a given XML Schema to parse and validate XML. You have some work creating the classes, but it runs very fast when you have generated the classes.
2) You use the topdown approach described on OTN. http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/doc-lit/index.html
I think this is the example for OC4J (9.0.4). There is a new and improved version of the tool (wsa.jar) with the new OC4J (10.1.3)
Have fun......and I am sure that Oracle quite soon will deliver the functionality directly from JDev....:-)
/Peter -
Hi all,
How can i change de SOAP Request message in an automatic JDev10g wizard develop stub code?
How can i print the SOAP Request/Receive message used in it?
How can i write the SOAP Request/Receive message used in it?
Thanks in advance.
Regards.Juan,
I have read this note but according to this procedure is
Choose System Management ® Administration ® Identity Management ® Configuration.
Procedure
1. On the AS Java, start UME configuration.
For more information, see Configuring Identity Management.
2. Choose the ABAP Server tab.
3. Choose Modify Configuration.
4. Enter the new client value under Client.
5. Choose Test Connection.
If the test fails, go back and reenter the connection data and test the connection until you are successful. Make sure the AS ABAP is running and has access to your network.
6. Choose Save All Changes.
7. Restart the AS Java.
But in ® Identity Management ® Configuration tab i am not getting option for ABAP server tab.
Where is the tab for ABAP server.
please help me out for the same.
Best Regards,
AjitR -
No router add on static ip clients
trouble with my server, 2 ethernet port, one for wan, one for lan. NAT. client with dhcp attributed address receive also the router address but static client does not!!
will appreciate any help.
thxeh man why will i use a server and then manually configure the clients?!
"client pull ip address from server static maps but receive only ip and subnet and not the router address inputed in the subnet config pane of the server, only the clients in the dynamic range receive the router address"
is that normal? should i manually configure my static clients?
had already took quite a lot of time for the static mapping!! is there something ive missd in the configuration? -
(ask) WRT54GC Static DHCP client name always "unknown"
I use WRT54GC for gateway for my internet connection. I have several wired computer that connect to switch that connet to WRT54GC. I have set Static DHCP as in manual book and name each MAC address. But in DHCP client list the name always show "unknown". Anyway to fix this? Thank you.
Message Edited by scannerfm77 on 07-29-2008 08:12 PMThe router DHCP will not show client using Static IP in the network .....
If you are using "Obtain IP settings" .... then the IP address ...computer name & MAC address ... will be there ... -
I'm thinking of implementing DHCP service on my Xserve. I see that when an Airport Extreme Base Station runs a DHCP server, you can create static maps with the individual computers/clients identified by their DHCP Client ID, something which I would find useful. AFAICT, this is not possible in Leopard Server's DHCP server, but it seems so unlikely that the AEBS has MORE functionality than Leopard Server.
Am I right, or is it possible to map static IP addresses by Client ID in Leopard Server?Camelot wrote:
Leopard Server does support static maps - it's right there in the Server Admin GUI.
Yes, I think I mentioned that.
However it's based off client MAC address, not Client ID.
So that's a no then.
Which means an AirPort Extreme Base Station has greater functionality than Leopard Server:-( -
Hi everyone
I have created a simple web service from my EmployeeRecord class.
I am using Static Stub to test it.
The add(2,3) method works but not the getName()
when String getName() invoked Null value is returned.
----------------------- my Static Stub Client -----------------------------
public class Tester
public static void main(String [] args) throws Exception {
// Make a service
EmployeeRecordServiceLocator service = new EmployeeRecordServiceLocator();
// Now use the service to get a stub .
EmployeeRecord port = service.getEmployeeRecord();
// Make the actual call
int adding = port.add(2,3);
System.out.println("Show adding -->" + adding );
port.setName("reza");
String myName = port.getName();
System.out.println("Show my name -->" + myName );
------------------------ my Java class which is being used ------------------------------------
package bankStaff;
import java.io.*;
public class EmployeeRecord
private String name ;
public String getName()
return name;
public void setName(String name)
this.name = name;
public int add(int a, int b)
return a+b;
The only way that will return a value is when I modify it as the following but don't think is correct.
Because it behaves as setter & getter at the same time!!!!!!!!!!
public String setName(String name)
return (this.name = name);
But When I use the EmployeeRecord class in standalone application (Non Web service) the String getName() works! It returns String value.
EmployeeRecord class used in standalone application
EmployeeRecord myVar = new EmployeeRecord():
myVar.setName(String name);
myVar.getName();
(Obivosualy the class EmployeeRecord has to be instantiated)
Q2 - Also How can we instantiate a class in the Web services or do we have to?
e.g. EmployeeRecord myVar = new EmployeeRecord():
Any clues please?
Kind regardsDoes debugger help ???
Please post the soln, if u solve
L. -
Web Service Client encoding style error
Hi all,
I have a created a java static stub client (created with wscompile from the wsdp). If I run the client I receive the following error
"unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/..."
I am using a delphi web service server, the encoding style is set to "http://schemas.xmlsoap.org/soap/encoding/"
My server simply echos a string with the method name "echoString"
Where do I go from here?
Does the xmlns tag in the "config-wsdl.xml" have anything to do with it?
Complete error :
java.rmi.RemoteException: Runtime exception; nested exception is:
unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=
at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:248)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:230)
at staticstub.IMyEmailWebService_Stub.echoString(IMyEmailWebService_Stub.java:68)
at DelphiClass.main(DelphiClass.java:25)
Caused by: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=
at com.sun.xml.rpc.encoding.SOAPDeserializationContext.verifyEncodingStyle(SOAPDeserializationContext.java:159)
at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:150)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:134)
at staticstub.IMyEmailWebService_Stub._deserialize_echoString(IMyEmailWebService_Stub.java:173)
at staticstub.IMyEmailWebService_Stub._readFirstBodyElement(IMyEmailWebService_Stub.java:157)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:158)
Thank you in advance
GarthLooks like the server is not using the correct encoding. I suggest using a packet sniffer so you can actually see the SOAP message to verify that. Apache Axis has a tcpmon utility that works very nicely.
-
A question regarding Web Service Client
Hi,
I read the tutorial "Creating Web Service Clients with JAX-RPC" and I coundn't understand something.
The code conatins, for example: (Stub) (new MyHelloService_Impl().getHelloIFPort()); Since it's a stand alone client, how it suppose to recognize MyHelloService_Impl()? Should it be added to the project libraries? What did I miss here?
Thanks, LiorThe wscompile tool generates class files required by the static stub client. The HelloClient program creates a stub as follows:
stub = (HelloIF_Stub)
(new HelloWorldService_Impl().getHelloIFPort());
The wscompile tool generates the HelloIF_Stub and HelloWorldService_Impl classes and places them in the build/classes/server/ subdirectory. To construct the HelloIF_Stub name, wscompile appends _Stub to the portType name defined in the WSDL file:
<portType name="HelloIF">
To create the HelloWorldService_Impl name, wscompile appends _Impl to the service name, which the WSDL file specifies as follows:
<service name="HelloWorldService"> -
Call a Webservice method from DotNetApplication
Hi all,
I have created One web service using Axis. My WebServices are below:
import java.util.*;
public class NHLService {
HashMap standings = new HashMap();
public NHLService() {
// NHL - part of the standings as per 04/07/2002
standings.put("atlantic/philadelphia", "1");
standings.put("atlantic/ny islanders", "2");
standings.put("atlantic/new jersey", "3");
standings.put("central/detroit", "1");
standings.put("central/chicago", "2");
standings.put("central/st.louis", "3");
public String getCurrentPosition(String division, String team) {
String p = (String)standings.get(division + '/' + team);
return (p == null) ? "Team not found" : p;
}Its name is NHLService.jws. Then I run this service in my localhost like this "http://localhost:8080/axis/NHLService.jws" It is running and show that
There is a Web Service here
Click to see the WSDL Now I can view the wsdl. Now I want to call this webservice method from DotNet Application.Please any one knows that can you guide me the steps.
Thanks in Advance,
Rajbut i don't understand a thing...
when i create a static stub client i link with the config-wsdl file the path of my webservices wdsl and the client compile and run well...
why with the servlet i had to link .class file or jar file??
thanks a loto -
Problem with WSDL generated with wscompile JAX-RPC
Ok well I have successfully built a Web Service (From an existing wsdl) and Static Stub Client they work perfectly. I then I tried to connect to it using a Delphi Web Service Client. The client cant change, the problem I am getting is it is requesting using the variable name I am using and the WSDL has String_1.
Ie. it gives me:
unexpected element name: expected=String_1, actual= {targetNameSpace} [Variable Name]
I suspect this is a problem with how the WSDL is generated any suggestions?THanks for the response, I originally used axis WSDL2Java. And only used the interface class. I think this is where my whole thing fell down. Although this worked with a static stub client that I used.
I have now generated the server side java files using wscompile and am l looking how to implement the server. It doesn't look like it has a implementation class there. And there isn't much information on how to do it.
Maybe you are looking for
-
Hi everyone, I cant seem to get my computer to start up and I'd really appreciate some help. When I try and start my g4 PB running 10.4, instead of the normal start up chime, I get a beeping sound and the screen stays black. The status light on the f
-
My iMac (mid 2007 20 inch/2.4/1+1G/320G) was frozen when I watched movies two days ago. It did not respond to any input anymore, so I forced restarting it (pressing power button for 4 second). I thought it could recover, but only found a folder icon
-
I cannot restore my iphone 5 software. It has downloaded but when I try to restore to iphone it say an 'unknown ' error has occurred and it wont restore.
-
Installing Adobe Illustrator on new laptop.
My old laptop has broken, I cannot uninstall Illustrator. How do I download Adobe Illustrator on my new laptop? Thanks.
-
I am attempting to upgrade my iPhone OS from 4.2.6 to OS 5. I followed the online directions, but when I go to "Settings > General", there is no "Software Update" option as they describe. I need to upgrade the OS in order to use a credit card swipe