I am suing CXF 2.3.11.
Here is my package-info:
@javax.xml.bind.annotation.XmlSchema(namespace = "mynamespace",
elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
I have small ping method in my rest web service. I have a similar method in
soap web service.
When I get a soap res
Hi,
I have a custom callbackhandler and custom userdetailsservice in my
application.
I use cxf-rt-ws-security 2.2.1
Here is snippet from my custom callbackhandler.
protected void handleWSPasswordCallback(WSPasswordCallback callback) {
String username = callback.getIdentifer(); //For 2.3
Does anyone have an answer for this issue?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/XmlAccessorOrder-and-inheritance-tp5739539p5739707.html
Sent from the cxf-user mailing list archive at Nabble.com.
I am using cxf 2.3.11.
I have a base class called InvoiceBase and a derive class called Invoice in
my web service.
Some elements are present in the base and some in the child.
When I call a method that required Invoice as a parameter, I need to send
elements from both invocie and its base.
Here i
Hi,
My restful service supports both xml and json. Each method in the service
can accept either a xml request or a json request. Is there a way I can
validate the incoming requests that are in xml or json format.
My soap web service auto generates the wsdl and that has all the required
validation
Thanks.
I just tried the same and it gives me the same error as before:
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"InvoiceDate"). Expected elements are
<{http://myservice.com/transaction}Address>,<{http://myservice.com/transaction}Invoice>,<{http://myservice.c
Thanks Sergey.
Does the following JSONProvider property let's the client send JSON payload
without namespaces, even if the beans in the payload are namespaced?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/Namespace-in-JSON-tp5733656p5733815.html
Sent fr
Please disregard my earlier message.
I have to prefix each element in json with the namespace value configured in
json namespace.
How will the client know what the prefix will be?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/Namespace-in-JSON-tp5733656
Thanks Sergey.
I did setup the name space map.
But it still does not work.
I use the same set of beans for both soap and rest.
Soap works and rest too with request type as xml.
It get the following error with JSON request:
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:""
HI,
My beans are namespaced and I use the same in JSON request to a cxf rest
webservice.
How do I add a namespace in JSON?
I use cxf 2.3.11
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/Namespace-in-JSON-tp5733656.html
Sent from the cxf-user mailing list a
I modified package info and it worked.
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-2-3-11-rest-web-service-payload-received-as-null-tp5733647p5733655.html
Sent from the cxf-user mailing list archive at Nabble.com.
I am using cxf 2.3.11 and I send the following payload to one of the rest
methods:
http://myservice.com/transaction";>
2013-08-29
http://myservice.com/transaction";>
300
I am using cxf-codegen-plugin:2.5.1:wsdl2java.
I keep getting the following error:
[ERROR]
"file:/C:/Users/jasmina.desai/MyServiceConnector/src/main/resources/wsdl/MyService.xsd"
is not a part of this compilation. Is this a mistake for
"file:/C:/Users/jasmina.desai/MyServiceConnector/src/main/res
Many thanks Sergey.
I created a filter in my app and attached it to the jax-rs config as a
provider.
After I try to call the rest api from my standalone html page, I ran into a
different issue.
The HttpHeaders return null every time.
I tried to use the context annotation, as in the code you point
Thanks Sergey.
My problem is exactly like the one described in
http://cxf.547215.n5.nabble.com/CORS-Interceptor-Filter-Endpoint-td4793366.html
Can you point me to some sample code please?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/CORS-support-in-CXF-ver
Hi Jeff,
Although this post is from 2011, I would like to know if you did find a
solution for the problem?
I am facing a similar problem and would appreciate if you let me know if you
found any solution?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/CORS-In
Hi,
Is there any way we can enable CORS support in CXF version prior to 2.5.1?
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/CORS-support-in-CXF-versions-prior-to-2-5-1-tp5731550.html
Sent from the cxf-user mailing list archive at Nabble.com.
Hi Daniel,
In continuation to my previous post, I tried putting namespace in both impl
and interface and the import in the generated wsdl is gone.
Many thanks for your answer.
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-insi
Thanks Daniel.
I checked the target namespace in my interface and the implementation.
The interface does have a target namespace defined, but the implementation
does not have any.
The impl just has the service name and the endpoint interface.
So will adding a namespace to the imp, help in elimina
Unfortunately I cannot upgrade my cxf version.
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-2-2-1-java2ws-imports-wsdl-inside-the-same-wsdl-tp5730187p5730214.html
Sent from the cxf-user mailing list archive at Nabble.com.
I auto generate the wsdl in my application using cxf 2.2.1.
When the wsdl gets generated, it imports itself.
So, if I have a wsdl at http://localhost:8080/services/MyService?wsdl, then
this wsdl has the following inside:
http://localhost:8080/services/MyService?wsdl=MyService.wsdl";
namespace="htt
Thanks Dan.
I upgraded to 2.3.11 without making any code changes in my project and that
is where I can upgrade upto because of some of the code I have.
But I still get the same error.
Here is the stack trace:
12:57:21,565 WARN PhaseInterceptorChain:400 - Application
{http://webservice.api.tx.ser
Thanks Dennis.
I changed the class to have Double properties instead of primitive double.
Now the wsdl shows minOccurs="0" for those double properties.
But I still get the same fault. I debugged too and the control does not even
come to the first line of my web service method. I think, the flow i
Hmm...that is strange.
All others that have the same XmlElement definition do have minOccurs="0".
But the latitude and longitude properties do not have minOccurs="0". I am
now confused.
This xsd is generated by cxf. Any diea why did it not add minOccurs="0".
Regards,
Jasmina
--
View this messa
Also, the flow does not even reach my web service method. The error is thrown
even before that because of the schema validation. If I disable the schema
validation, everything works fine.
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-2-2-1-schema-valida
Thanks Dennis.
Please find below the address class. The web service method actually just
takes address as a parameter and unfortunately that itself is passed as
null. The xsd was auto generated from the java code by the cxf maven plugin.
---
Here is the start of my schema definition:
http://www.w3.org/2001/XMLSchema";
xmlns:tns="http://test.webservice.com/transaction";
attributeFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="http://speedtax.com/transaction";>
My schema and wsdl is auto generated from the
I had tried with 2.6.6 and 2.7 also. But I get the same error message.
Not sure what is wrong. I have wasted 3 good days on this issue with no
luck.
Regards,
Jasmina
--
View this message in context:
http://cxf.547215.n5.nabble.com/cxf-2-2-1-schema-validation-throws-error-tp5727471p5727473.html
I am using cxf 2.2.1 for my soap ws.
I have a java first approach.
*Here is the endpoint declaration:*
29 matches
Mail list logo