Cannot create a JAX-RS web service on RAD v9.6 - web-services

I try to create a JAX-RS web service on RAD, I followed this document on IBM, and I am getting this error:
The wsgen tool returned an error: The command line is too long
So which is the best way to fix this error? Thanks in advance! I am using RAD ver 9.6.
And get error : http://imgur.com/GXtZqxd

Related

org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error

I have installed SOAP UI 5.3 in my university system. While loading web services to a new project the following error is appearing:
org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error
I have done all possible solutions given on the Internet.
I was getting two errors:
org.apache.xmlbeans.XmlException:org.apache.xmlbeans.XmlException: error: does not close tag.
I resolved it by soapUI: Error does not close tag.
But I am unable to resolve below one.
https://community.smartbear.com/t5/SoapUI-NG/Resolved-error-does-not-close-tag/td-p/29309, set none in proxy setting in my system.
The error descriptions are misleading. Please suggest if anyone can help me.
I have tried with the following web services:
https://www.w3schools.com/xml/tempconvert.asmx?op=CelsiusToFahrenheit and used other web services as well, but I am unable to load in the SOAPUI project.
In my case, this problem solution was really simple, you just need to add ?wsdl in web service url.
http://localhost/service?wsdl
Seems like Error was misleading

ERROR loading WSDL into SOAPUI when testing the web service created by Anypoint(mule)

I am completely new to AnyPoint Platform, and wanted to give it a shoot by running the "howto-wrapping a SOAP web service over a data base" I strictly followed the instructions and successfully got the APP deployed in AnyPoint.
However,when I wanted to test the web service by SOAPUI, an error came out
error loading wsdl
I tried to open it in the browser and it worked. Could anyone give any hint about how to solve the problem? Thanks in advance.
This is how the WSDL opened in the IE look like:
wsdl opend in the browser

403 forbidden issue when importing WSDL in UFT

I have a WSDL which is retrieving all available web services when I try to import from SOAP UI, where as I am getting '403-forbidden-Couldn't download' issue if I try to fetch the webs services using same WSDL in HP - UFT tool.
What could be the cause. Can anyone help me on this?

WSO2 BPS - BPMN API not working

I'm trying to use the REST API for BPMN following the documentation, but even the most basic requests such as
https://localhost:9443/bpmn/repository/deployments
or
https://localhost:9443/bpmn/repository/process-definitions
return the following error
{"statusCode":400,"errorMessage":"javax.ws.rs.InternalServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;"}
I'm using BPS server 3.5.1 with Oracle JDK 1.8.0_77, as it was downloaded, with the only addition of a BPMN process to test its dashboard. The service is run as root (via sudo)
What can be done to fix this?
Thanks
I tried it on postman and it works perfectly. Please choose the correct request type (GET, POST, PUT or DELETE), if not the following error will be thrown on the server side:
javax.ws.rs.ClientErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status$Family;)Ljavax/ws/rs/core/Response;

Add service reference to ESB toolkit and BizTalk

I have installed BizTalk together with ESB toolkit and ESB services are up and running according to IIS. I want to connect to these services from a simple WinForm application.
When I try to add this service reference in my project in visual studio
localhost/ESB.BizTalkOperationsService/Operations.asmx
I get the following error message:
There was an error downloading 'localhost/ESB.BizTalkOperationsService/Operations.asmx/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'localhost/ESB.BizTalkOperationsService/Operations.asmx'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
If the service is defined in the current solution, try building the solution and adding the service reference again."
I can browse to:
localhost/ESB.BizTalkOperationsService
but not to the service directly:
localhost/ESB.BizTalkOperationsService/Operations.asmx
How do I communicate with this ESB service?
The problem was that the webservice had been incorrectly installed. I managed to fix this problem by unistalling and reinstalling according to this tutorial
http://geekswithblogs.net/BizTalkUnleashed/archive/2012/11/07/biztalk-server-2013-beta-on-windows-8-visual-studio-2012.aspx