c# - webservice proxy returns null -
this webservice url trying connect , use of operations in it. operation used realtimetransaction. method takes input corerealtimerequest object , returns corerealtimeresposne object. well. web service returns soap response fiddler able capture proxy returns null.
this wsdl contains many unresolved links. wsdl references resolve when change occurrences of b2borexatest orseviceb2btest. there total of 4 references b2borexatest in service url. doing so, able create proxy class using svcutil.
https://b2borexatest.oracleoutsourcing.com/soa-infra/services/default/mmissoaprequestreceiver!1.0/corerule220.wsdl https://orserviceb2btest.oracleoutsourcing.com/soa-infra/services/default/mmissoaprequestreceiver!1.0/corerule220.wsdl
this how these objects defined in wsdl
<types>-<xsd:schema xmlns="http://schemas.xmlsoap.org/wsdl/" targetnamespace="http://www.caqh.org/soap/wsdl/" elementformdefault="qualified"> <xsd:import schemalocation="https://b2borexatest.oracleoutsourcing.com:443/soa-infra/services/default/mmissoaprequestreceiver!1.0*soa_d48cf4e0-5e7b-43ad-b430-727180d48841/routeeditransactions_ep?xsd=xsd/corerule2.2.0.xsd" namespace="http://www.caqh.org/soap/wsdl/corerule2.2.0.xsd"/> </xsd:schema> </types>-<message name="realtimerequestmessage"> <part name="body" element="core-xsd:coreenveloperealtimerequest"/> </message> <message name="realtimeresponsemessage"> <part name="body" element="core-xsd:coreenveloperealtimeresponse"/> </message>
this how part of soap:body on fiddler request looks like
`<s:body xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <coreenveloperealtimerequest xmlns="http://www.caqh.org/soap/wsdl/corerule2.2.0.xsd"> <payloadtype xmlns="">x12_270_request_005010x279a1</payloadtype> <processingmode xmlns="">realtime</processingmode><payloadid xmlns="">461726944</payloadid> <timestamp xmlns="">2013-07-23t07:35:22z</timestamp> <senderid xmlns="">sid</senderid> <receiverid xmlns="">rid</receiverid> <coreruleversion xmlns="">`
response soap ui or fiddler. object of interest in corerealtimresponse. 1 null when using proxy call service method.
http/1.1 200 ok date: fri, 19 jul 2013 21:10:32 gmt server: oracle-application-server-11g content-length: 3030 set-cookie: jsessionid=; expires=thu, 01-jan-1970 01:00:00 gmt; path=/; httponly set-cookie: _wl_authcookie_jsessionid=; expires=thu, 01-jan-1970 01:00:00 gmt; path=/; secure; httponly x-oracle-dms-ecid: 004suf1pzhw9pdyn06aauf00037x000s4e soapaction: "" x-powered-by: servlet/2.5 jsp/2.1 keep-alive: timeout=5, max=100 connection: keep-alive content-type: multipart/related;type="application/xop+xml";boundary="----=_part_52_444854407.1374268236586";start="<283134dc77544061b8c4d5788ee9bd44>";start-info="text/xml" content-language: en ------=_part_52_444854407.1374268236586 content-type: application/xop+xml;charset=utf-8;type="text/xml" content-transfer-encoding: 8bit content-id: <283134dc77544061b8c4d5788ee9bd44> <?xml version="1.0" encoding="utf-8" ?> <env:envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" <env:body> <coreenveloperealtimeresponse xmlns:cor="http://www.caqh.org/soap/wsdl/corerule2.2.0.xsd" xmlns="http://www.caqh.org/soap/wsdl/corerule2.2.0.xsd"><cor:payloadtype>x12_271_response_005010x279a1</cor:payloadtype><cor:processingmode>realtime</cor:processingmode> <cor:payloadid>339408072</cor:payloadid> <cor:timestamp>2013-07-19t16:10:36.517-05:00</cor:timestamp> <cor:senderid>sid</cor:senderid> <cor:receiverid>recid</cor:receiverid> <cor:coreruleversion>2.2.0</cor:coreruleversion> <cor:payload>isa*00* *00* ~</cor:payload> <cor:errorcode>successful</cor:errorcode> <cor:errormessage>envelope processed successfully</cor:errormessage> </coreenveloperealtimeresponse> </env:body> </env:envelope> ------=_part_52_444854407.1374268236586--
code:
var orrealtimetrans = new ormcdproxy.coreenveloperealtimerequest() { payloadtype = "x12_270_request_005010x279a1", processingmode = procmode, payloadid = interchangecontrolnumber, coreruleversion = ruleversion, senderid = senderid, receiverid = receiverid, timestamp = datetime.utcnow.tostring("yyyy-mm-ddthh:mm:22z"), payload = query270 }; ormcdproxy.coreenveloperealtimeresponse resp = ormcdproxy.realtimetransaction(orrealtimetrans);
this resp object null.
http://webservices20.blogspot.com/2008/10/interoperability-gotcha-visual-studio.html documents problem , solution add web reference instead of service reference.
but not option me because service wsdl has unresolved links , have no control on it.
Comments
Post a Comment