cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with making a Powerbuilder WCF Service CAll

Former Member
0 Kudos

I am trying to make a call to a service with a long return string. I keep getting an error that tells me wrong mismatch of binding. I am currently using the HTTPBasic.

Constructor

// BindingType

wcfConnectionObject.BindingType = PBWCF.WCFBindingType.BasicHttpBinding!

//wcfConnectionObject.BasicHttpBinding.maxReceivedMessageSize=2147483647

//wcfConnectionObject.BasicHttpBinding.MaxBufferPoolSize = 2147483647

//wcfConnectionObject.BasicHttpBinding.MaxBufferSize = 2147483647

ERROR:

+ $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.ProtocolException:

The content type text/xml; charset=ISO-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><SupplierOrderStatusSubmitResponse

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns="http://www.opei.org/OPEISchema/2005/05/03/SupplierOrderStatusResponse.xsd"><SubmitId>1</SubmitId><SubmitStatus>Approved</SubmitStatus><Note>"Your Supplier Inquiry has Been Processed."</Note><OrdersResponse><PONumber>070001470901</PONumber><POLine>01</POLine><SupplierProductId>901050580400</SupplierProductId><CustomerProductId>21563001</CustomerProductId><Description>"BOLT, FLANGE"</Description><QtyReq>2</QtyReq><Containers>1</Containers><Measure>EA</Measure><UnitCost>.111</UnitCost><LineStatus>ACCEPT</LineStatus><BuyerInformation><Name>KAREN DALLMANN</Name><Email>KDALLMANN@ARIENS.COM</Email><Phone>9207564246</Phone></BuyerInformation><DeliverBy>2016-10-31</DeliverBy><DeliverToInformation><Addr1>919 E 14TH ST</Addr1><City>JASPER</City><State>IN</State><Zi'.

Server stack trace:

at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)

at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at supplierorderstatussubmit.SupplierOrderStatusWebServiceSoap.SupplierOrderStatusSubmit(SupplierOrderStatusSubmitRequest1 request)

at supplierorderstatussubmit.SupplierOrderStatusWebServiceSoapClient.supplierorderstatussubmit.SupplierOrderStatusWebServiceSoap.SupplierOrderStatusSubmit(SupplierOrderStatusSubmitRequest1 request)

at supplierorderstatussubmit.SupplierOrderStatusWebServiceSoapClient.SupplierOrderStatusSubmit(SupplierOrderStatusSubmitRequest SupplierOrderStatusSubmitRequest)

--- End of inner exception stack trace ---

at Sybase.PowerBuilder.WCFRuntime.Service.Invoke()

at supplierorderstatussubmit.c__supplierorderstatussubmit_supplierorderstatuswebservicesoapclient.supplierorderstatussubmit(SupplierOrderStatusSubmitRequest supplierorderstatussubmitrequest) in c:\Development\Source .NET\Ariens\ariens.out\{supplierorderstatussubmit}supplierorderstatussubmit_supplierorderstatuswebservicesoapclient.supplierorderstatussubmit(Csupplierorderstatussubmit+supplierorderstatussubmitresponse.Csupplierorderstatussubmit+supplie:line 16

at c__w_ariens.c__cb_1.clicked() in c:\Development\Source .NET\Ariens\ariens.out\w_ariens.cb_1.clicked:line 38} System.Exception {System.Reflection.TargetInvocationException}

Accepted Solutions (0)

Answers (0)