Question
Web Service doesn't respond if accessed publicly
Hi,
I have created a web service that returns a simple XML file. There is a private IP assigned to it as well as a public IP. When I try to invoke it with the private IP, the XML file gets returned correctly. However using the public IP fails to give a response. The 2 IP addresses point to the same location and I was able to get the WSDL file using either IP address. I was wondering if anyone has encountered this problem before?
The web service:
<cffunction
name="getCustomer"
returntype="XML"
output="false"
access="remote"
hint="get CanadaPharmacy customer"
>
<cfargument name="PartnerGateway" type="string" required="yes">
<cfxml variable="customerXML" casesensitive="no">
<cfoutput>
<?xml version="1.0" encoding="UTF-8"?>
<PartnerGateway>
<ErrorMessageDetails>testing 123</ErrorMessageDetails>
</PartnerGateway>
</cfoutput>
</cfxml>
<cfreturn customerXML>
</cffunction>
</cfcomponent>
The <cfinvoke> call:
<cfinvoke webservice=" http://(IP address)/cfc/CustomerRequest_test.cfc?wsdl"
method="getCustomer"
returnvariable="customerInfo"
refreshWSDL="yes">
<cfinvokeargument name="PartnerGateway" value="#PartGate#"/>
</cfinvoke>
The web service is in a file named "CustomerRequest_test.cfc" while the variable "PartGate" is an XML file.
Sincerely,
Jason
I have created a web service that returns a simple XML file. There is a private IP assigned to it as well as a public IP. When I try to invoke it with the private IP, the XML file gets returned correctly. However using the public IP fails to give a response. The 2 IP addresses point to the same location and I was able to get the WSDL file using either IP address. I was wondering if anyone has encountered this problem before?
The web service:
<cffunction
name="getCustomer"
returntype="XML"
output="false"
access="remote"
hint="get CanadaPharmacy customer"
>
<cfargument name="PartnerGateway" type="string" required="yes">
<cfxml variable="customerXML" casesensitive="no">
<cfoutput>
<?xml version="1.0" encoding="UTF-8"?>
<PartnerGateway>
<ErrorMessageDetails>testing 123</ErrorMessageDetails>
</PartnerGateway>
</cfoutput>
</cfxml>
<cfreturn customerXML>
</cffunction>
</cfcomponent>
The <cfinvoke> call:
<cfinvoke webservice=" http://(IP address)/cfc/CustomerRequest_test.cfc?wsdl"
method="getCustomer"
returnvariable="customerInfo"
refreshWSDL="yes">
<cfinvokeargument name="PartnerGateway" value="#PartGate#"/>
</cfinvoke>
The web service is in a file named "CustomerRequest_test.cfc" while the variable "PartGate" is an XML file.
Sincerely,
Jason
