Trying to connect rest webservice from localhost - web-services

I am trying to connect rest webservice from Postman but I am getting 404 Not Found."End point not found".
http://localhost/AGS360RestWebServices/CustomerExpenseService.svc/customerexpenses/session
Can you please help on how I can solve this issue.
Thank you.

Related

How to test https rest webservice in postman

I have deployed the a rest webservice over https using self signed certificate. Now i am facing the issue in postman while trying to test it. Error is same as follows:-
I also follow the post from this link using-self-signed-certificates-with-postman but i am not able to find the connection tab as mentioned in the step 3.
Can anybody please help me how can i resolve that certificate issue.
Thanks
Try open the same URL in your chrome browser. You may get privacy
error. Click advanced link and proceed. Come back to postman and
send your request.
In Postman go menu File/Settings in General tab disable "SSL certificate verification".

Error in SOAP-UI while loading the wsdl hosted in localhost

I am getting the following error while loading a localhost wsdl. If I try other wsdls which are not hosted locally it works fine. Please help.
Error loading [http://localhost:7001/xyz?wsdl]: java.lang.Exception: Failed to load url; http://localhost:7001/xyz?wsdl, 0
Errors from the log
ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:119)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:112)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:488)
at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:477)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:94)
at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:209)
at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
at java.lang.Thread.run(Unknown Source)
I have gone through this link and it did not solve the problem.
soapUI failed to load url error when loading wsdl
Based on the errors you're getting, here is a list of possible solutions that come to mind:
Check the URL of the WSDL in a browser. Does it open? If not, your server is not started and the WSDL contract is unreachable.
Make sure you are not using a proxy and you don't have some proxy option set in the SOAP UI preferences
There might be a problem with the validity of your WSDL, but it is impossible to tell without inspecting it.
Hope this helps!
In may case the problem was I was trying to load the .xsd instead the .wsdl
-as both are very similar when open in browser.. is easy to make the mistake.
Added the following parameters to the .vmoptions file, and restarted SoapU helped resolve this for me.
-Dsoapui.https.protocols=TLSv1.2
-Djsse.enableSNIExtension=false
-Djava.net.preferIPv4Stack=true

403 Forbidden error When calling webservice method from ASP.net Application

Need help urgetly,
I am trying to access a web service from a remote computer. I am able to browse the web service link from the browser, and able to communicate from windows application But when i try to call from asp.net application which is hosted on IIS 6 on windows server 2003 getting HTTP 403 and some times 501 not implemented errors.
Please help me out.
Thanks In Advance.
Hari.
I have Found the solution for my problem here.
http://forums.asp.net/t/1860412.aspx/1?403+Forbidden+error+When+calling+webservice+method+from+ASP+net+Application
Thanks to Gaurav.

Error when accessing webservice

I am trying to access a webservice from vb.net web app. Its throwing error like
"This is a secure webservice and should be accessed through https"
what does this error means? Any solution?
Thanks in Advance,
Pavan
I assume where you are trying to connect to the web service you are trying to connect to something like
http://webservice.services.com
you should be using
https://webservice.services.com

Secure Webservice Client on Glassfish

I have an secure external webservice at URL https://my-webservice-path?wsdl, and i want to connect to use this. This is a 2-way ssl.
I create a webservice client in following:
Create an java application Application1
at Project window, click Application1 icon -> new -> Web service client
paste my URL at WSDL URL, client type is JAX-WS, package: com.mypackage
finish
But an error appears: Error: An I/O error occured. Received fatal alert: handshake_failure
And i can not create Web Service References. I use Glassfish 3.0.1 server.
I tried to replace the alias s1as in keystore.jks and cacerts.jks of the Glassfish by my keypair and certificate, but it still fails.
I also tried to use wsimport parsing wsdl file but fail:(
I posted this question in Oracle Forum at http://forums.oracle.com/forums/thread.jspa?threadID=2214292&tstart=0 but get no answer.
i've tried to solve this for 2 days :(
What can i do now to solve this problem?
Plz help me, thank you!
please check out the answer from Catchwa in Mutual-authentication with web services. The steps to implement a glassfish based mutual authentication are described in detail.