Mohd Fuzail

Ranch Hand
+ Follow
since Feb 20, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mohd Fuzail

Objective
To create a java Web Service client using IBM Web sphere JAX-WS runtime to consume any web service. This client needs to be developed as utility project for a given Web Service and allows other application to invoke that particular web service

Tool Used
RAD 7.0.0.7 (with Web Service Feature Pack )
WAS 6.1

Problem
After creating Java client from RAD using IBM Web sphere JAX-WS runtime as a Java Utility Project, whenever I am invoking the Web Service using this client I am getting following error

Exception in thread "main" java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List;
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:988)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:428)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:350)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:303)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromWSDL(EndpointDescriptionImpl.java:834)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:702)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:222)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:187)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:314)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:228)
at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:102)
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:242)
at javax.xml.ws.Service.getPort(Service.java:41)
at org.example.person.PersonService.getPersonPort(PersonService.java:50)
at org.example.person.Person_portProxy$Descriptor.initCommon(Person_portProxy.java:31)
at org.example.person.Person_portProxy$Descriptor.<init>(Person_portProxy.java:22)
at org.example.person.Person_portProxy.<init>(Person_portProxy.java:69)
at test.ws.client.ProxtTestClient.main(ProxtTestClient.java:72)



Research
Goggled this error, appears issue with the usage of incorrect version of wsdl4j.jar file
Tried replacing wsdl4j.jar (version wsdl4j-1_6_2 latest) with the available wsdl4j.jar files in RAD, no success
Replaced wsdl4j-1.5.1.jar with latest jar, no success
Comprehensive error resolution is provided at http://markmail.org/message/gktovd4fbwjqs65t but nothing is working as of now
http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-version-on-websphere.html talks about making following changes if application which is hitting this issue id deployed over WAS (Classes loaded with application class loader first and Single class loader for application ), but in our case this is a utility project

WSDL FILE

16 years ago
Background
I need to use RAD 7.0.0.7 (cant use anything else ) to create standalone java client for Web Service, presently i am trying to create client for
WS-A : .NET Web Service whose WSDL location i have
WS-B : Another Webservice which was generated using WebSphere JAX-WS Runtime.

Problem
When i tried creating java client using the code SAAJ-CLIENT provided in FAQ. I am getting java.lang.reflect.InvocationTargetException for both WS-A and WS-B

For another Wed Service which was generated using WebPshere JAX-RPC runtime SAAJ-CLIENT is working fine

Goal
I need to create a utility program using which the user provides WSDL location and minimal information (like input parameter)and the utility will take care of rest like accessing web service, wrapping parameter and returning response.

I know RAD 7 allows you to create a Java Proxy Client for any given web service, but i dont want to deploy the client to be used. My primary requirement is to create a standalone java client. I know it can be done as i am able to Test the .NET webservice using Test Explorer in RAD. Since i am new to WS and RAD (4 week old) i am still facing issues in getting things in right perspective

Please help
16 years ago
Thanks guys for not replying, that forced me to start thinking from the ground and I finally managed to figure this one out.... althought it almost spoiled my dinner...
BackGround
I am new to EJB. I am trying to implement CMR using J2EE RI.

I have a Movie Local Entiry Bean and Director Local Entity Bean (both are CMP). Access to these local Bean is provided using AccessMovie stateless Session Bean.

Relationship between Movie and Director is many ne.

I have specified the relationship between these two beans using relationship TAB in J2EE RI.

For Movie bean i am setting setDirector() CMR in ejbPostCreate() method and i am able to access getDirector().

Problem
For Director CMR 'Collection getMovies()' and 'setMovies(Collection movies)', I am not able to set the values hence nor able to get the values.

Present Approach
1. define a ejbSelect method in movie bean which will return all movies which have a given director id. EJB-SQL is select object(m) from Movie m where m.director.id = ?1

2. define another method in director bean which uses InitialContext and then find the movies by director id and then call setMovies accordingly.

I am not sure very much comfortable with the last step and also getting ServerException.

Can anyone help me with the troubleshooting.

Details
Check Thread API here and i think JOIN should serve your purpose
[ June 12, 2008: Message edited by: Mohd Fuzail ]
I think John wants to decide at runtime whether he wants to execute Filter B or not and this decision he needs to make from Filter A code
[ June 11, 2008: Message edited by: Mohd Fuzail ]
16 years ago
jsp:include is suppose to be dynamic in nature. Can you try using c:import instead?

I think there might be some container setting which can help to determine the file being dynamically imported.

Lets wait for more inputs from others and in the mean time try out c:import
16 years ago
JSP
Please check the Container specification as to which version it supports

For Tomcat check its site
[ June 10, 2008: Message edited by: Mohd Fuzail ]
16 years ago
JSP


But Since date has been depreciated better use Calender



Hope it helps
16 years ago

If I comment the last write() statement that is one containing '\n' then I see a blank screen as the output.This is also not clear



From the source code of out.write


By default autoFlush is false, so if we write '\n' the data written is flushed from the stream or we can flush it explicitly

Hope that helps
[ June 06, 2008: Message edited by: Mohd Fuzail ]
16 years ago
print(int i)
Print an integer. The string produced by String.valueOf(int) is translated into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.

write(int c)
Write a single character.

Hope it helps.

Next time please just do a quick reference to API before posting
[ June 06, 2008: Message edited by: Mohd Fuzail ]
16 years ago
please do a netstat -a -n to see if port no 25 is already in use. Port No 25 is well defined port for SMTP.

Try using port no between 49152 through 65535
Hope you have restarted the Container (Tomcat) after adding the new directory and the file.
16 years ago
JSP
The X-Forwarded-For (XFF) HTTP header is a de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy Wiki

But if the request is coming directly from client then it can return null.

So you need to take care of this condition also
16 years ago
JSP