WebServices3


Click here for a complete list of operations.

Shipping_ShippingProvider_OptimizeSingleGroup

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /WebServices3.asmx HTTP/1.1
Host: demo.bvcommerce.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3/Shipping_ShippingProvider_OptimizeSingleGroup"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Shipping_ShippingProvider_OptimizeSingleGroup xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3">
      <token>
        <ExpirationDate>dateTime</ExpirationDate>
        <ExpirationDateUTC>dateTime</ExpirationDateUTC>
        <UserBvin>string</UserBvin>
        <TokenRejected>boolean</TokenRejected>
        <IsExpired>boolean</IsExpired>
      </token>
      <provider />
      <p>
        <Items>
          <LineItem>
            <AssociatedProduct xsi:nil="true" />
            <AdjustedPrice>decimal</AdjustedPrice>
            <BasePrice>decimal</BasePrice>
            <Discounts>decimal</Discounts>
            <AdditionalDiscount>decimal</AdditionalDiscount>
            <LineTotalWithoutDiscounts>decimal</LineTotalWithoutDiscounts>
            <LineTotal>decimal</LineTotal>
            <OrderBvin>string</OrderBvin>
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductSku>string</ProductSku>
            <ProductShortDescription>string</ProductShortDescription>
            <Quantity>decimal</Quantity>
            <QuantityReturned>decimal</QuantityReturned>
            <QuantityShipped>decimal</QuantityShipped>
            <ShippingPortion>decimal</ShippingPortion>
            <ShippingStatus>Unknown or Unshipped or PartiallyShipped or FullyShipped or NonShipping</ShippingStatus>
            <TaxPortion>decimal</TaxPortion>
            <Inputs xsi:nil="true" />
            <Modifiers xsi:nil="true" />
            <StatusCode>string</StatusCode>
            <StatusName>string</StatusName>
            <GiftWrapCount>int</GiftWrapCount>
            <GiftWrapDetails xsi:nil="true" />
            <GiftWrapTotal>decimal</GiftWrapTotal>
            <KitSelections xsi:nil="true" />
          </LineItem>
          <LineItem>
            <AssociatedProduct xsi:nil="true" />
            <AdjustedPrice>decimal</AdjustedPrice>
            <BasePrice>decimal</BasePrice>
            <Discounts>decimal</Discounts>
            <AdditionalDiscount>decimal</AdditionalDiscount>
            <LineTotalWithoutDiscounts>decimal</LineTotalWithoutDiscounts>
            <LineTotal>decimal</LineTotal>
            <OrderBvin>string</OrderBvin>
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductSku>string</ProductSku>
            <ProductShortDescription>string</ProductShortDescription>
            <Quantity>decimal</Quantity>
            <QuantityReturned>decimal</QuantityReturned>
            <QuantityShipped>decimal</QuantityShipped>
            <ShippingPortion>decimal</ShippingPortion>
            <ShippingStatus>Unknown or Unshipped or PartiallyShipped or FullyShipped or NonShipping</ShippingStatus>
            <TaxPortion>decimal</TaxPortion>
            <Inputs xsi:nil="true" />
            <Modifiers xsi:nil="true" />
            <StatusCode>string</StatusCode>
            <StatusName>string</StatusName>
            <GiftWrapCount>int</GiftWrapCount>
            <GiftWrapDetails xsi:nil="true" />
            <GiftWrapTotal>decimal</GiftWrapTotal>
            <KitSelections xsi:nil="true" />
          </LineItem>
        </Items>
        <SourceAddress>
          <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
          <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
          <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
          <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
          <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
          <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
          <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
          <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
          <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
          <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
          <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
          <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
          <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
          <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
          <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
          <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
          <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
          <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
          <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
          <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
          <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
        </SourceAddress>
        <DestinationAddress>
          <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
          <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
          <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
          <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
          <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
          <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
          <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
          <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
          <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
          <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
          <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
          <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
          <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
          <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
          <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
          <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
          <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
          <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
          <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
          <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
          <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
        </DestinationAddress>
        <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
        <ShipId>string</ShipId>
        <Length>decimal</Length>
        <Width>decimal</Width>
        <Height>decimal</Height>
        <Weight>decimal</Weight>
        <ShipSeperately>boolean</ShipSeperately>
        <Oversize>boolean</Oversize>
      </p>
      <maxWeight>decimal</maxWeight>
      <result>
        <ShippingGroup>
          <Items>
            <LineItem xsi:nil="true" />
            <LineItem xsi:nil="true" />
          </Items>
          <SourceAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </SourceAddress>
          <DestinationAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </DestinationAddress>
          <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
          <ShipId>string</ShipId>
          <Length>decimal</Length>
          <Width>decimal</Width>
          <Height>decimal</Height>
          <Weight>decimal</Weight>
          <ShipSeperately>boolean</ShipSeperately>
          <Oversize>boolean</Oversize>
        </ShippingGroup>
        <ShippingGroup>
          <Items>
            <LineItem xsi:nil="true" />
            <LineItem xsi:nil="true" />
          </Items>
          <SourceAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </SourceAddress>
          <DestinationAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </DestinationAddress>
          <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
          <ShipId>string</ShipId>
          <Length>decimal</Length>
          <Width>decimal</Width>
          <Height>decimal</Height>
          <Weight>decimal</Weight>
          <ShipSeperately>boolean</ShipSeperately>
          <Oversize>boolean</Oversize>
        </ShippingGroup>
      </result>
    </Shipping_ShippingProvider_OptimizeSingleGroup>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Shipping_ShippingProvider_OptimizeSingleGroupResponse xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3">
      <Shipping_ShippingProvider_OptimizeSingleGroupResult>boolean</Shipping_ShippingProvider_OptimizeSingleGroupResult>
      <token>
        <ExpirationDate>dateTime</ExpirationDate>
        <ExpirationDateUTC>dateTime</ExpirationDateUTC>
        <UserBvin>string</UserBvin>
        <TokenRejected>boolean</TokenRejected>
        <IsExpired>boolean</IsExpired>
      </token>
    </Shipping_ShippingProvider_OptimizeSingleGroupResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /WebServices3.asmx HTTP/1.1
Host: demo.bvcommerce.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Shipping_ShippingProvider_OptimizeSingleGroup xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3">
      <token>
        <ExpirationDate>dateTime</ExpirationDate>
        <ExpirationDateUTC>dateTime</ExpirationDateUTC>
        <UserBvin>string</UserBvin>
        <TokenRejected>boolean</TokenRejected>
        <IsExpired>boolean</IsExpired>
      </token>
      <provider />
      <p>
        <Items>
          <LineItem>
            <AssociatedProduct xsi:nil="true" />
            <AdjustedPrice>decimal</AdjustedPrice>
            <BasePrice>decimal</BasePrice>
            <Discounts>decimal</Discounts>
            <AdditionalDiscount>decimal</AdditionalDiscount>
            <LineTotalWithoutDiscounts>decimal</LineTotalWithoutDiscounts>
            <LineTotal>decimal</LineTotal>
            <OrderBvin>string</OrderBvin>
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductSku>string</ProductSku>
            <ProductShortDescription>string</ProductShortDescription>
            <Quantity>decimal</Quantity>
            <QuantityReturned>decimal</QuantityReturned>
            <QuantityShipped>decimal</QuantityShipped>
            <ShippingPortion>decimal</ShippingPortion>
            <ShippingStatus>Unknown or Unshipped or PartiallyShipped or FullyShipped or NonShipping</ShippingStatus>
            <TaxPortion>decimal</TaxPortion>
            <Inputs xsi:nil="true" />
            <Modifiers xsi:nil="true" />
            <StatusCode>string</StatusCode>
            <StatusName>string</StatusName>
            <GiftWrapCount>int</GiftWrapCount>
            <GiftWrapDetails xsi:nil="true" />
            <GiftWrapTotal>decimal</GiftWrapTotal>
            <KitSelections xsi:nil="true" />
          </LineItem>
          <LineItem>
            <AssociatedProduct xsi:nil="true" />
            <AdjustedPrice>decimal</AdjustedPrice>
            <BasePrice>decimal</BasePrice>
            <Discounts>decimal</Discounts>
            <AdditionalDiscount>decimal</AdditionalDiscount>
            <LineTotalWithoutDiscounts>decimal</LineTotalWithoutDiscounts>
            <LineTotal>decimal</LineTotal>
            <OrderBvin>string</OrderBvin>
            <ProductId>string</ProductId>
            <ProductName>string</ProductName>
            <ProductSku>string</ProductSku>
            <ProductShortDescription>string</ProductShortDescription>
            <Quantity>decimal</Quantity>
            <QuantityReturned>decimal</QuantityReturned>
            <QuantityShipped>decimal</QuantityShipped>
            <ShippingPortion>decimal</ShippingPortion>
            <ShippingStatus>Unknown or Unshipped or PartiallyShipped or FullyShipped or NonShipping</ShippingStatus>
            <TaxPortion>decimal</TaxPortion>
            <Inputs xsi:nil="true" />
            <Modifiers xsi:nil="true" />
            <StatusCode>string</StatusCode>
            <StatusName>string</StatusName>
            <GiftWrapCount>int</GiftWrapCount>
            <GiftWrapDetails xsi:nil="true" />
            <GiftWrapTotal>decimal</GiftWrapTotal>
            <KitSelections xsi:nil="true" />
          </LineItem>
        </Items>
        <SourceAddress>
          <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
          <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
          <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
          <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
          <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
          <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
          <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
          <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
          <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
          <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
          <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
          <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
          <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
          <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
          <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
          <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
          <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
          <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
          <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
          <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
          <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
        </SourceAddress>
        <DestinationAddress>
          <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
          <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
          <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
          <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
          <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
          <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
          <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
          <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
          <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
          <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
          <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
          <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
          <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
          <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
          <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
          <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
          <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
          <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
          <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
          <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
          <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
        </DestinationAddress>
        <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
        <ShipId>string</ShipId>
        <Length>decimal</Length>
        <Width>decimal</Width>
        <Height>decimal</Height>
        <Weight>decimal</Weight>
        <ShipSeperately>boolean</ShipSeperately>
        <Oversize>boolean</Oversize>
      </p>
      <maxWeight>decimal</maxWeight>
      <result>
        <ShippingGroup>
          <Items>
            <LineItem xsi:nil="true" />
            <LineItem xsi:nil="true" />
          </Items>
          <SourceAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </SourceAddress>
          <DestinationAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </DestinationAddress>
          <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
          <ShipId>string</ShipId>
          <Length>decimal</Length>
          <Width>decimal</Width>
          <Height>decimal</Height>
          <Weight>decimal</Weight>
          <ShipSeperately>boolean</ShipSeperately>
          <Oversize>boolean</Oversize>
        </ShippingGroup>
        <ShippingGroup>
          <Items>
            <LineItem xsi:nil="true" />
            <LineItem xsi:nil="true" />
          </Items>
          <SourceAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </SourceAddress>
          <DestinationAddress>
            <NickName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</NickName>
            <FirstName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</FirstName>
            <MiddleInitial xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</MiddleInitial>
            <LastName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</LastName>
            <Company xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Company>
            <Line1 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line1>
            <Line2 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line2>
            <Line3 xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Line3>
            <City xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</City>
            <RegionName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionName>
            <RegionBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</RegionBvin>
            <PostalCode xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</PostalCode>
            <CountryName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryName>
            <CountryBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountryBvin>
            <Phone xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Phone>
            <Fax xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</Fax>
            <WebSiteUrl xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</WebSiteUrl>
            <CountyName xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyName>
            <CountyBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</CountyBvin>
            <UserBvin xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">string</UserBvin>
            <Residential xmlns="http://www.bvsoftware.com/bvc5/schemas/2005/09/01/Contacts/Address">boolean</Residential>
          </DestinationAddress>
          <ShippingMode>None or ShipFromSite or ShipFromVendor or ShipFromManufacturer</ShippingMode>
          <ShipId>string</ShipId>
          <Length>decimal</Length>
          <Width>decimal</Width>
          <Height>decimal</Height>
          <Weight>decimal</Weight>
          <ShipSeperately>boolean</ShipSeperately>
          <Oversize>boolean</Oversize>
        </ShippingGroup>
      </result>
    </Shipping_ShippingProvider_OptimizeSingleGroup>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Shipping_ShippingProvider_OptimizeSingleGroupResponse xmlns="http://www.bvsoftware.com/Schemas/Bvc5/2006/01/WebServices3">
      <Shipping_ShippingProvider_OptimizeSingleGroupResult>boolean</Shipping_ShippingProvider_OptimizeSingleGroupResult>
      <token>
        <ExpirationDate>dateTime</ExpirationDate>
        <ExpirationDateUTC>dateTime</ExpirationDateUTC>
        <UserBvin>string</UserBvin>
        <TokenRejected>boolean</TokenRejected>
        <IsExpired>boolean</IsExpired>
      </token>
    </Shipping_ShippingProvider_OptimizeSingleGroupResponse>
  </soap12:Body>
</soap12:Envelope>