troubleshooting Question

WebService/Soap returing 0 values.

Avatar of ash691
ash691Flag for United States of America asked on
Web Languages and StandardsSOAP Protocol
8 Comments1 Solution371 ViewsLast Modified:
I'm trying my first real SOAP call to consume a webservice. I normally use REST/URL.
I have the WSDL loaded as a App_WebReference (VS 2012).
I set up the ratequote set up properly (I can hover over and see the authentication and quote request details data).

I think the webservice is being hit because it returns  all the correct data fields but with no data in them returned.

I don’t think my quote request details are making their way to the webservice. MY guess is my syntax  or constructs are incorrect.  I’ve pasted in the part of the wsdl I think will help. I hope this makes sense. I’ve been at it for over a day+ now. I’ve been researching but the lights not coming on. Thanks

        

        Dim rrratequote As New wsdl_roadrunner.QuoteRequest
        Dim FMScredentials As New wsdl_roadrunner.AuthenticationHeader

        With FMScredentials
            .UserName = ("Shipper")
            .Password = ("freight")
        End With

        Dim fgtdetails(1) As wsdl_roadrunner.ShipmentDetail
        fgtdetails(1) = New ShipmentDetail
        With fgtdetails(1)
            .ActualClass = ("60")
            .Weight = ("1800")
        End With
        With rrratequote
            .OriginZip = ("38455")
            .DestinationZip = ("30303")
            .PalletCount = ("2")
            .ShipDate = ("9/6/2013")
            .OriginType = ("B")
            .PaymentType = ("P")
            .ShipmentDetails = fgtdetails
        End With

        Dim ratequote As wsdl_roadrunner.RateQuoteRequest = New wsdl_roadrunner.RateQuoteRequest(FMScredentials, rrratequote)

        Dim response As wsdl_roadrunner.QuoteResponse = New wsdl_roadrunner.QuoteResponse()

WSDL

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://webservices.rrts.com/ratequote/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="https://webservices.rrts.com/ratequote/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="https://webservices.rrts.com/ratequote/">
      <s:element name="RateQuote">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="request" type="tns:QuoteRequest" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="QuoteRequest">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="OriginZip" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="DestinationZip" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="ShipmentDetails" type="tns:ArrayOfShipmentDetail" />
          <s:element minOccurs="0" maxOccurs="1" name="OriginType" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PaymentType" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PalletCount" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="LinearFeet" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="CubicFeet" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="Pieces" type="s:int" />
          <s:element minOccurs="0" maxOccurs="1" name="ServiceDeliveryOptions" type="tns:ArrayOfServiceOptions" />
          <s:element minOccurs="0" maxOccurs="1" name="COD" type="tns:CODFee" />
          <s:element minOccurs="0" maxOccurs="1" name="Discount" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="ListedConsigneeCity" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="InternalUse" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PalletPosition" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="ShipDate" type="s:dateTime" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfShipmentDetail">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="ShipmentDetail" nillable="true" type="tns:ShipmentDetail" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ShipmentDetail">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="ActualClass" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="Weight" type="s:int" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ArrayOfServiceOptions">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="ServiceOptions" nillable="true" type="tns:ServiceOptions" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="ServiceOptions">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="ServiceCode" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="CODFee">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="Prepaid" type="s:boolean" />
          <s:element minOccurs="1" maxOccurs="1" name="CODAmount" type="s:double" />
        </s:sequence>
      </s:complexType>
      <s:element name="RateQuoteResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="RateQuoteResult" type="tns:QuoteResponse" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="QuoteResponse">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="QuoteNumber" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="NetCharge" type="s:double" />
          <s:element minOccurs="0" maxOccurs="1" name="Customer" type="tns:CustomerInformation" />
          <s:element minOccurs="0" maxOccurs="1" name="RoutingInfo" type="tns:RoutingInformation" />
          <s:element minOccurs="0" maxOccurs="1" name="RateDetails" type="tns:ArrayOfQuoteDetail" />
          <s:element minOccurs="0" maxOccurs="1" name="OriginType" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="PaymentType" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="CODAmount" type="s:double" />
          <s:element minOccurs="1" maxOccurs="1" name="ShipmentDate" type="s:dateTime" />
          <s:element minOccurs="1" maxOccurs="1" name="CustomerCubicFoot" type="s:int" />
          <s:element minOccurs="1" maxOccurs="1" name="HawaiianRatedCubicFoot" type="s:int" />
        </s:sequence>
      </s:complexType>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros