Skip to main content
Inspiring
January 5, 2022
Question

ColdFusion generated wsdl showing axis prefix namespace

  • January 5, 2022
  • 1 reply
  • 468 views

Hi,

I have re-installed the ColdFusion 2016 Development versionwith update 16.

My all existing Web Service (WSDL) format is changed.

Before  :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mob="http://mobservice.itcssap">
<soapenv:Header/>
<soapenv:Body>
<mob:TOKENRequest>

<mob:valUserName>?</mob:valUserName>

<mob:valPassword>?</mob:valPassword>

<mob:valDevUniqID>?</mob:valDevUniqID>

<mob:valDevName>?</mob:valDevName>

<mob:valDevPushNotif>?</mob:valDevPushNotif>

</mob:TOKENRequest>
</soapenv:Body>
</soapenv:Envelope>

After Re-Install :

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:axis="http://ws.apache.org/axis2">
<soap:Header/>
<soap:Body>
<axis:TOKENRequest>
<!--Optional:-->
<axis:valUserName>?</axis:valUserName>
<!--Optional:-->
<axis:valPassword>?</axis:valPassword>
<!--Optional:-->
<axis:valDevUniqID>?</axis:valDevUniqID>
<!--Optional:-->
<axis:valDevName>?</axis:valDevName>
<!--Optional:-->
<axis:valDevPushNotif>?</axis:valDevPushNotif>
</axis:TOKENRequest>
</soap:Body>
</soap:Envelope>

 

Can anybody help me.

 

Thanks

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
January 6, 2022

What you've shown looks to me like a message in a SOAP request, rather than part of a WSDL. If it is, then that's not necessarily a problem. You are free to define the namespaces (xmlns) yourself when you make a SOAP request. So, in your web-service requests, change the Envelope's namespaces by replacing 

xmlns:soap="http://www.w3.org/2003/05/soap-envelope" with xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

and

xmlns:axis="http://ws.apache.org/axis2" with xmlns:mob="http://mobservice.itcssap"

 

Then, in the body, replace soap: with soapenv: and axis: with mob:.

sne_paulAuthor
Inspiring
January 6, 2022

Thanks for your reply.

The Problem is this Service (WSDL) consumed by thirparty and multiple place. We cant change the SOAP request.

I am not sure, its very strange, why suddenly its changed to "axis" every were in SOAP request.

Is there any ColdFusion configuration issue ? Please help me if you have any idea.

 

Thanks.

BKBK
Community Expert
Community Expert
January 6, 2022

I am now confused. How do you generate the WSDL? How did you get the before and after format you've shown above? 

 

 

Is there any ColdFusion configuration issue ? Please help me if you have any idea.


By @sne_paul

Yes. You could configure any or all of the following:

  1. Delete all the cached class files from \wwwroot\WEB-INF\cfclasses\ and \wwwroot\WEB-INF\cfc-skeletons\. That will force ColdFusion to generate new classes.
  2. Open the ColdFusion Administrator and go to the page Data & Services > Web Services. Experiment by changing the Web Service Version (from 1 to 2 or from 2 to 1).
  3.  ( still in the page Data & Services > Web Services ) If your web service is registered there, then press the Refresh button.