Hi everyone Lucee web services Lucee Response: ...
# lucee
c
Hi everyone Lucee web services Lucee Response:
<ns2:ValidateBookingsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://moderation.types.soap.webservices">
ACF Response:
<ValidateBookingsResponse xmlns="http://moderation.types.soap.webservices">
I need to remove the ns2 somehow? Does anyone know how I can remove ns2 namespace perfix from
xmlns:ns2="..."
, using
server-config.wsdd
d
c
Thanks for this. Yes. I did see this link, but I am not sure how to implement it, as it is Java stuff. I was hoping to add a configuration setting to:
Copy code
server-config.wsdd
Because, this change happens during the Axis phase. So, once the object is returned from the SOAP web service method, it is intercepted by Axis & converted into the XML response that the caller, receives. I don’t think it’s possible to use Java to change the response?
So maybe something like: server-config.wsdd
Copy code
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="<http://xml.apache.org/axis/wsdd/>"
	xmlns:java="<http://xml.apache.org/axis/wsdd/providers/java>">
	<globalConfiguration>
		...
		<parameter name="attributeFormDefault" value="unqualified" />
		<parameter name="elementFormDefault" value="unqualified" />
		...
</deployment>
But I fear that this will remove every prefix, which is not what I want. I only want to remove a prefix on a specific node.
This could be closer to what I need:
Copy code
@javax.xml.bind.annotation.XmlSchema(namespace = "<http://moderation.types.soap.webservices>", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED, xmlns = { @javax.xml.bind.annotation.XmlNs(namespaceURI = "<http://moderation.types.soap.webservices>", prefix = "") })
But, I don't know how, when or where to implement this? In the examples on SO, it seems to be added to a file called:
Copy code
package-info.java
Currently, our: server-config.wsdd
Copy code
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="<http://xml.apache.org/axis/wsdd/>"
	xmlns:java="<http://xml.apache.org/axis/wsdd/providers/java>">
	<globalConfiguration>
		<parameter name="sendMultiRefs" value="false" />
		<parameter name="sendXsiTypes" value="false" />
		<requestFlow>
			<handler type="java:org.apache.axis.handlers.JWSHandler">
				<parameter name="scope" value="session" />
			</handler>
			<handler type="java:org.apache.axis.handlers.JWSHandler">
				<parameter name="scope" value="request" />
				<parameter name="extension" value=".jwr" />
			</handler>
		</requestFlow>
	</globalConfiguration>
	<handler name="LocalResponder"
		type="java:org.apache.axis.transport.local.LocalResponder" />
	<transport name="local">
		<responseFlow>
			<handler type="LocalResponder" />
		</responseFlow>
	</transport>
</deployment>
Does not resolve the problem. I have tried adding many of the params in: Global Axis Configuration https://axis.apache.org/axis/java/reference.html#Global_Axis_Configuration Like: • axis.Compiler • axis.xmlEncoding • axis.sendMinimizedElements • enable2DArrayEncoding • dotNetSoapEncFix But, alas, no joy! ☹️
@zackster Is there any way I can fork/clone, the:
Copy code
org.lucee.axis
Repository? I need to add a new global param to:
Copy code
server-config.wsdd
It is really important that we can remove this n2 namespace. It does not appear when we make an identical call to the ACF11 web service. It uses the same version of the Axis 1 engine, web service & wsdl etc
z
generally speaking, I have to say, don't use slack for this stuff, post to the mailing list
👍 1