Click here to Skip to main content
14,579,188 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi,  I'm struggeling with a webservice request and could use some help. I was sent a WSDL 

<a href="https://www.estes-express.com/tools/rating/ratequote/v4.0/services/RateQuoteService?wsdl">WSDL link</a>

I can't figure out how to construct the actual response request to gain a response from  the server. 

I have all the freight load requirements loaded up correctly in my estesRateRequest object (code below)

My issue is I have no idea how to construct and fire off the request to gain a response from the server. I don't know where to look in the WSDL and am trying to learn Any help will be gladly appreciated :) Thanks

<pre lang="vb">   Protected Sub GetEstesRate()

    Dim estesAuth As New wsdl_estes.AuthenticationType
    estesAuth.user = ("xxxzz")
    estesAuth.password = ("zzzz")

    Dim estesRateRequest As New rateRequest With {
        .requestID = ("xxxxxxx"),
        .account = ("12345"),
        .terms = ("P")
        }

    Dim eOrigin As New PointType With {
        .city = ("Atlanta"),
        .stateProvince = ("GA"),
        .postalCode = ("30369"),
        .countryCode = ("US")
        }
    estesRateRequest.originPoint = eOrigin

    Dim eDestination As New PointType With {
        .city = ("Knoxville"),
        .stateProvince = ("TN"),
        .postalCode = ("37918"),
        .countryCode = ("US")
        }
    estesRateRequest.destinationPoint = eDestination

    Dim eDims As New DimensionsType With {
        .length = ("48"),
        .width = ("42"),
        .height = ("45")
        }

    Dim Commodity As New FullCommodityType With {
        .class = 60,
        .description = ("Books"),
        .weight = ("7000"),
        .pieces = ("6"),
        .pieceType = PackagingType.SK,
        .dimensions = eDims
        }

    estesRateRequest.Item = (Commodity)

    estesRateRequest.linearFeet = ("12")

    Dim accscode() As String = {"APT"}

    estesRateRequest.accessorials = accscode

End Sub


What I have tried:

Been reading and researching WSDL's and concuming webservices but justr can't seem to find the way to make the call to the server.
Posted
Comments
F-ES Sitecore 27-Jun-20 12:42pm
   
Google for how to consume a WSDL service, it is well documented. If you can't work it out by following a detailed step-by-step tutorial it is unlikely you'll be able to follow any help we can give you either.
danash 27-Jun-20 19:44pm
   
I already have a website that reaches out to 12 different carriers using SAOP, REST & JSON calls. Pretty sure I could follow anything you throw at me. It's pretty normal that a carrier provides support documentation exposing all the properties and methods available and eeded to consume thier webservice. This carrier did not. So I have the unenviable task of trying to decipher and traipse through thier WSDL. Not having much success and after lots of googeling, I figured I'd ask here. I havent asked to be spoon feed or anything to the like. Only wanted someone who's had more experiance at reading WSDL documents. to point or nudge me in the right direction. What i got borders on snobery or arrogance to me. Not sure if you meant to be that way but... Wasn't any help what so ever. If thats the best you can do you may want to just not answer posts with comments like that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100