You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by nachi19 <na...@gmail.com> on 2009/01/22 21:39:56 UTC

Integration of UPS services

hi all,
    i am integrating the ups shipment services for one of the web site .. i
am just checking with the upsShipmentConfirm() method which takes the
attribute of a shipment_route_segment table .. i am here just passing the
shipmentid and the shipmentRouteSegmentid as input through xml file and i
have hard coded the carrier_service_status_id to SHRSCS_NOT_STARTED in
database itself when i run the application and pass the two id values it
says that "Weight value not found for ShipmentRouteSegment with shipmentId
10000, shipmentRouteSegmentId 00001, and shipmentPackageSeqId 00001"  i
didnt understand what is the weight value and how the value will be set to
weight... can anyone help me out in this


-- 
View this message in context: http://www.nabble.com/Integration-of-UPS-services-tp21612722p21612722.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Integration of UPS services

Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

OK lets start with line 400.
up to this point you have a list of shipment segments you going to walk
through.
line 403
                GenericValue shipmentPackage =
shipmentPackageRouteSeg.getRelatedOne("ShipmentPackage");
gets the entity ShipmentPackage
if you use the webtools to look up ShipmentPackage
for the Id you of this segment you will see if the wieght is there.


line 447
                if (shipmentPackage.getString("weight") == null) {
                    return ServiceUtil.returnError("Weight value not
found for ShipmentRouteSegment with shipmentId " + shipmentId + ",
shipmentRouteSegmentId " + shipmentRouteSegmentId + ", and
shipmentPackageSeqId " + shipmentPackage.getString("shipmentPackageSeqId"));

says the ShipmentPackage.wieght is null.

kiran19 sent the following on 1/22/2009 1:04 PM:
> i am using the latest version of the ofbiz downloaded from the net.. and i
> still didnt got the UPS technical tools(API) from them.. i am just tracking
> the things from the upsservices.java  which is available in ofbiz...
> 
> BJ Freeman wrote:
> what version of the svn are you using
> are you using the UPS code already in ofbiz?
> 
> nachi19 sent the following on 1/22/2009 12:39 PM:
>>>> hi all,
>>>>     i am integrating the ups shipment services for one of the web site ..
>>>> i
>>>> am just checking with the upsShipmentConfirm() method which takes the
>>>> attribute of a shipment_route_segment table .. i am here just passing the
>>>> shipmentid and the shipmentRouteSegmentid as input through xml file and i
>>>> have hard coded the carrier_service_status_id to SHRSCS_NOT_STARTED in
>>>> database itself when i run the application and pass the two id values it
>>>> says that "Weight value not found for ShipmentRouteSegment with
>>>> shipmentId
>>>> 10000, shipmentRouteSegmentId 00001, and shipmentPackageSeqId 00001"  i
>>>> didnt understand what is the weight value and how the value will be set
>>>> to
>>>> weight... can anyone help me out in this
>>>>
>>>>
>>
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJeORqrP3NbaWWqE4RAnrHAJ90A+PMD/uHYnI0tvH089avzZ8IKQCfZoVI
XxIusR4Y6FAIp2304lEHtzY=
=M8o+
-----END PGP SIGNATURE-----

Re: Integration of UPS services

Posted by kiran19 <bs...@gmail.com>.
i am using the latest version of the ofbiz downloaded from the net.. and i
still didnt got the UPS technical tools(API) from them.. i am just tracking
the things from the upsservices.java  which is available in ofbiz...

BJ Freeman wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> what version of the svn are you using
> are you using the UPS code already in ofbiz?
> 
> nachi19 sent the following on 1/22/2009 12:39 PM:
>> hi all,
>>     i am integrating the ups shipment services for one of the web site ..
>> i
>> am just checking with the upsShipmentConfirm() method which takes the
>> attribute of a shipment_route_segment table .. i am here just passing the
>> shipmentid and the shipmentRouteSegmentid as input through xml file and i
>> have hard coded the carrier_service_status_id to SHRSCS_NOT_STARTED in
>> database itself when i run the application and pass the two id values it
>> says that "Weight value not found for ShipmentRouteSegment with
>> shipmentId
>> 10000, shipmentRouteSegmentId 00001, and shipmentPackageSeqId 00001"  i
>> didnt understand what is the weight value and how the value will be set
>> to
>> weight... can anyone help me out in this
>> 
>> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFJeNxlrP3NbaWWqE4RAlvrAJ0fXdKGpus7mPtEGt/MgF4iGzG2HACggG4W
> /jJmVnEG9GxGBmJpYNDfweY=
> =T08q
> -----END PGP SIGNATURE-----
> 
> 

-- 
View this message in context: http://www.nabble.com/Integration-of-UPS-services-tp21612722p21613193.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Integration of UPS services

Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

what version of the svn are you using
are you using the UPS code already in ofbiz?

nachi19 sent the following on 1/22/2009 12:39 PM:
> hi all,
>     i am integrating the ups shipment services for one of the web site .. i
> am just checking with the upsShipmentConfirm() method which takes the
> attribute of a shipment_route_segment table .. i am here just passing the
> shipmentid and the shipmentRouteSegmentid as input through xml file and i
> have hard coded the carrier_service_status_id to SHRSCS_NOT_STARTED in
> database itself when i run the application and pass the two id values it
> says that "Weight value not found for ShipmentRouteSegment with shipmentId
> 10000, shipmentRouteSegmentId 00001, and shipmentPackageSeqId 00001"  i
> didnt understand what is the weight value and how the value will be set to
> weight... can anyone help me out in this
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJeNxlrP3NbaWWqE4RAlvrAJ0fXdKGpus7mPtEGt/MgF4iGzG2HACggG4W
/jJmVnEG9GxGBmJpYNDfweY=
=T08q
-----END PGP SIGNATURE-----