Moieen Khatri

Ranch Hand
+ Follow
since Nov 27, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Moieen Khatri

12 years ago
I am stuck with this issue for almost a day.

Any idea as to what could be the problem?

Regards
Moieen
12 years ago
Hi,

I am trying to call a webservice using java client and get the below exception.

Please can someone highlight what is wrong with the code

Thanks



Error message:


Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Server was unable to process request. ---> Authorization Error at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:189)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy28.getXYZData(Unknown Source)
at com.ml.test_webservice.MainClass.main(MainClass.java:37)


Client code to call the webservice:

12 years ago
Hi Kumar,

You are correct.On executing wsimport command the artifacts got generated(Java classes were generated out of which there is a class which extends Service Class)

I got the ports using the below code:



I now have the URL from the port

How can I invoke the business method now using the above port.Kindly advice.

Please can you post some sample code which can help me implement the above?

Thanks
Moieen
13 years ago
Thanks for the response.

I generated the stubs using the below command:

wsimport -p <package - name> -s <source> -d <destination> WSDL URL


Now I am trying to call the method using Java standalone class.

My question is in order to consume the webservice do I need to have a client configuration file which will have the reference to the wsdl url along with the stub code?

Please provide your valuable feedback

Thanks
Moieen
13 years ago
Hi Experts,

I am new to webservices.I am trying to call wsdl file using standalone java class.

Please can someone help with the steps as to how can I consume wsdl webservice using java class?

Also,what setup do I need to have inorder to achieve the same?

Thanks



13 years ago
Hi,
I am new to Webservices and need to learn basics about WSDL and using Webservices in Java.

Can some one please provide some reference examples/material/code/useful links.

Thanks in advance


Regards
~Moieen
13 years ago
Hi Friends,

Please can someone help me to convert large number of excel files to postscript files using java or any other method
Thanks

Moieen
Yes I have.Unfortunately I didn't find any Java related information for doing this.
Is there any possibility of converting xls files to postscript files.

Please help!

Thanks

Moieen

Hi All,

Is there any Java api/classes to convert the .xls files to .ps(postscript) files

Any help will be appreciated.

Moieen
Thanks alot Matthew!

I was trying to create the folders with the same name as the files at the same level.

Silly me!

changing the name of the folder did the trick.

Once again thanks to all of you who helped me resolve this

Kind Regards

Moieen

13 years ago
Thanks for the reply.

I tried to create the folder in the manner below but without success


The value of success variable is false when the program is run and the folder is not created

Any ideas about this behaviour?

Thanks

13 years ago
Hi,

I need help with creation of folder at specific location.



I need to create folder inside path represented by String folderPath variable.
This folder should be of the name represented by String fileName variable.

How can I create folder at the specific path by giving the path and foldername as parameters?

Please advice

Thanks
13 years ago