Hi,
I'm stuck. I've been re-reading up on SOAP/WSDL's all last week but not making much headway. I would areally appreciate any help.
I have a WSDL service reference/proxy class installed in in my project. I can see it all in my object browser. the wsdl is loacated at:
https://www.estes-express.com/tools/...teService?wsdl
I've constructed the call to the webservice below but am getting an error "InnerException: {"The type Estes_Test.wsdl_estes.FullCommodityType was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically."}"
Herein lies my problem. I am uncertain on how to construct the "fullcommodities " type to FullCommodityType().
The "commodity" is a load of 7000 pounds, class 60 freight and a quantity of 6 palletts. Since im requesting a volume load quote from Estes freightlines I have to use the "FullCommoditiesType" as opposed to the "BaseCommoditiesType" as dictated in the
documentation
(https://www.estes-express.com/resour...b-service-v4-0). There can be up to 5 commodities loaded
so I'm assuming it can/should be a array. I'll be happy just to get the one load rated.
FullCommoditiesType.commodity As Estes_Test.wsdl_estes.FullCommodityType()
The public class FullCommodityType has the public properties of class, ClassSpecified, description, peices, pieceType
weight, pieceType as wsdl_estes.packagngType, dimensions as wsdl_estes.DimensionsType
I can't seem to get my head wrapped around how to construct the Commodites to pass them into the request. By looking at the object browser I'm pretty sure they have to be added to the "quoteRequest.Item".
Can someone offer some assitance on this. Been strugeling with it for days.
Thanks
Dim EstesService As ratingPortTypeClient = New ratingPortTypeClient() Dim quoteResponse As rateQuote = New rateQuote Dim quoteRequest As rateRequest = New rateRequest Dim estesAuth As New wsdl_estes.AuthenticationType With { .user = ("myestes"), .password = ("estesPW") } Dim shipfrom As New wsdl_estes.PointType With { .city = ("Memphis"), .stateProvince = ("TN"), .postalCode = ("38104"), .countryCode = ("US") } Dim shipto As New wsdl_estes.PointType With { .city = ("Atlanta"), .stateProvince = ("GA"), .postalCode = ("30369"), .countryCode = ("US") } Dim loaddimensions As New wsdl_estes.DimensionsType With { .length = ("48"), .width = ("44"), .height = ("55") } Dim myFreightLoad As New wsdl_estes.FullCommodityType With { .class = (60), .classSpecified = True, .description = ("Books"), .pieces = ("6"), .pieceType = PackagingType.SK, .weight = ("7000"), .dimensions = loaddimensions } Dim quoteRequest As rateRequest = New rateRequest With { .account = ("7451400"), .terms = ("P"), .linearFeet = ("12"), .stackable = YesNoBlankType.N, .payor = ("T"), .originPoint = shipfrom, .destinationPoint = shipto, .Item = myFreightLoad } ' The actual call for consuming the webservice is quoteResponse = EstesService.getQuote(estesAuth, quoteRequest)